Class: Victor::CLI::CommandLine

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

Class Method Summary collapse

Class Method Details

.routerObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/victor/cli/command_line.rb', line 7

def self.router
  router = MisterBin::Runner.new version: VERSION,
    header: "Victor SVG Utilities"

  router.route 'init',    to: Commands::Init
  router.route 'convert', to: Commands::Convert
  router.route 'render',  to: Commands::Render

  router
end