Created
April 5, 2013 04:04
-
-
Save takkkun/5316536 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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