class Bashly::CLI

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

Public Class Methods

runner() click to toggle source
# File lib/bashly/cli.rb, line 7
def self.runner
  runner = MisterBin::Runner.new version: Bashly::VERSION,
    header: "Bashly - Bash CLI Generator"

  runner.route 'init',      to: Commands::Init
  runner.route 'preview',   to: Commands::Preview
  runner.route 'generate',  to: Commands::Generate
  runner.route 'add',       to: Commands::Add

  runner
end