Class: Madness::CLI

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

Overview

The CLI class is used by the bashly binary and forwards incoming CLI commands to the relevant Bashly::Commands class

Class Method Summary collapse

Class Method Details

.runnerObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/madness/cli.rb', line 7

def self.runner
  runner = MisterBin::Runner.new version: Madness::VERSION,
    header: 'Markdown Madness - Instant Markdown Server',
    footer: "Help: m`madness COMMAND --help`\nDocs: bu`https://madness.dannyb.co`"

  # runner.route 'init',      to: Commands::Server
  runner.route 'server',    to: Commands::Server
  runner.route 'config',    to: Commands::Config
  # runner.route 'toc',       to: Commands::TOC
  runner.route 'theme',     to: Commands::Theme

  runner
end