module Expedite::Cli
Constants
- COMMANDS
Public Instance Methods
command(cmd)
click to toggle source
# File lib/expedite/cli.rb, line 38 def command(cmd) klass = COMMANDS[cmd] raise NotImplementedError, "Unknown command '#{cmd}'" if klass.nil? klass.new end
run(args)
click to toggle source
# File lib/expedite/cli.rb, line 32 def run(args) command(args.first).run(args[1..]) rescue NotImplementedError Cli::Help.new.run([]) end