Class: Kojo::CLI
- Inherits:
-
Object
- Object
- Kojo::CLI
- Defined in:
- lib/kojo/cli.rb
Overview
The CLI class is used by the kojo binary and forwards incoming CLI commands to the relevant Kojo::Commands class
Class Method Summary collapse
Class Method Details
.runner ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/kojo/cli.rb', line 9 def self.runner Kojo.interactive = ENV['KOJO_INTERACTIVE'] != 'no' runner = MisterBin::Runner.new version: Kojo::VERSION runner.route 'file', to: Kojo::Commands::FileCmd runner.route 'dir', to: Kojo::Commands::DirCmd runner.route 'config', to: Kojo::Commands::ConfigCmd runner.route 'single', to: Kojo::Commands::SingleCmd runner.route 'form', to: Kojo::Commands::FormCmd runner end |