#!/usr/bin/env ruby require 'rubygems' require 'commander' require 'yaml' require 'start_x/config' require 'start_x/project' module Startx class Runner include Commander::Methods # include whatever modules you need def run program :name, 'starters' program :version, '0.0.1' 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| Starters::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| Starters::Project.new end end run! end end end