Class: EYCli::CLI
- Inherits:
-
Object
- Object
- EYCli::CLI
- Defined in:
- lib/ey_cli/cli.rb
Instance Method Summary collapse
Instance Method Details
#run(args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ey_cli/cli.rb', line 3 def run(args) name = (args.shift || 'help').downcase command = EYCli.command_manager[name] unless command EYCli.term.say <<-EOF Command not available: '#{name}' Try running `ey_cli help' to get more information about the available commands. EOF else command.run(args) end end |