Class: Completely::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/completely/cli.rb

Class Method Summary collapse

Class Method Details

.runnerObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/completely/cli.rb', line 10

def self.runner
  runner = MisterBin::Runner.new version: Completely::VERSION,
    header: 'Completely - Bash Completions Generator',
    footer: 'Run m`completely COMMAND --help` for more information'

  runner.route 'init',      to: Commands::Init
  runner.route 'preview',   to: Commands::Preview
  runner.route 'generate',  to: Commands::Generate
  runner.route 'test',      to: Commands::Test

  runner
end