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
7 8 9 10 11 12 13 14 15 |
# File 'lib/kojo/cli.rb', line 7 def self.runner 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 end |