Class: Chandler::CLI
- Inherits:
-
Object
- Object
- Chandler::CLI
- Extended by:
- Forwardable
- Includes:
- Logging
- Defined in:
- lib/chandler/cli.rb,
lib/chandler/cli/parser.rb
Overview
Handles constructing and invoking the appropriate chandler command based on command line arguments and options provided by the CLI::Parser. Essentially this is the “router” for the command-line app.
Defined Under Namespace
Classes: Parser
Instance Method Summary collapse
-
#initialize(parser: Chandler::CLI::Parser.new(ARGV)) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
21 22 23 |
# File 'lib/chandler/cli.rb', line 21 def run command.call end |