Skip to content

Instantly share code, notes, and snippets.

@takkkun
Created April 5, 2013 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save takkkun/5316536 to your computer and use it in GitHub Desktop.
Save takkkun/5316536 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'thor'
module Example
class App < Thor
desc 'install', 'install something'
def install
puts 'run example:app:install'
end
end
end
Example::App.start
$ ./command.rb example:app:install
Could not find command "example:app:install". # 本当は"run example:app:install"と表示されてほしい
$ ./command.rb install
run example:app:install # あれ、名前空間効いてないんじゃ…… となる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment