class StartX::Runner

Public Instance Methods

run() click to toggle source

include whatever modules you need

# File lib/start_x.rb, line 17
def run
  program :name, 'starters'
  program :version, StartX::VERSION
  program :description, 'Easily kickoff projects from git'
  default_command :project

  command :config do |c|
    c.syntax = 'start config [options]'
    c.summary = ''
    c.description = ''
    c.example 'description', 'command example'
    c.option '--some-switch', 'Some switch that does something'
    c.action do |args, options|
      StartX::Config.new
    end
  end

  command :project do |c|
    c.syntax = 'start project [options]'
    c.summary = ''
    c.description = ''
    c.example 'description', 'command example'
    c.action do |args, options|
      StartX::Project.new
    end
  end

  run!
end