class Sumcli::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
new(name)
click to toggle source
# File lib/sumcli/cli.rb, line 40 def new(name) if options[:help] invoke :help, ['new'] else Sumcli::Commands::New.new(name, options).execute end end
start(*)
click to toggle source
# File lib/sumcli/cli.rb, line 24 def start(*) if options[:help] invoke :help, ['start'] else require_relative 'commands/start' Sumcli::Commands::Start.new(options).execute end end
version()
click to toggle source
# File lib/sumcli/cli.rb, line 15 def version require_relative 'version' puts "v#{Sumcli::VERSION}" end