Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class App < Thor
- map "-L" => :list
- desc "install APP_NAME", "install one of the available apps"
- method_options :force => :boolean, :alias => :string
- def install(name)
- user_alias = options[:alias]
- if options.force?
- say "Forced"
- end
- say user_alias
- end
- desc "list [SEARCH]", "list all of the available apps, limited by SEARCH"
- def list(search="")
- say "List"
- end
- end
Add Comment
Please, Sign In to add comment