class Kojo::CLI
The CLI
class is used by the kojo binary and forwards incoming CLI
commands to the relevant Kojo::Commands
class
Public Class Methods
runner()
click to toggle source
# 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.route 'tojson', to: Kojo::Commands::ToJsonCmd runner end