Class: Flo::Cli
- Inherits:
-
Object
- Object
- Flo::Cli
- Defined in:
- lib/flo/cli.rb
Overview
Builds the command line parser and executes Flo::Runner using the commands supplied. In general you should be able to create a new instance and then pass in ARGV directly into #call.
Instance Method Summary collapse
-
#call(argv) ⇒ Object
Runs a command using args directly from ARGV.
-
#initialize(opts = {}) ⇒ Cli
constructor
Creates a new CLI runner instance.
Constructor Details
Instance Method Details
#call(argv) ⇒ Object
Runs a command using args directly from ARGV.
25 26 27 |
# File 'lib/flo/cli.rb', line 25 def call(argv) generate_commands.run(argv) end |