Class: CodingChallenge::CLI
- Inherits:
-
Thor
- Object
- Thor
- CodingChallenge::CLI
- Defined in:
- lib/coding_challenge/cli.rb
Overview
Handle the application command line parsing and the dispatch to various command objects
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/coding_challenge/cli.rb', line 26 def start(*) if [:help] invoke :help, ['start'] else require_relative 'commands/start' CodingChallenge::Commands::Start.new().execute end end |
#version ⇒ Object
15 16 17 18 |
# File 'lib/coding_challenge/cli.rb', line 15 def version require_relative 'version' puts "v#{CodingChallenge::VERSION}" end |