lib/start_x.rb in start-x-0.0.1 vs lib/start_x.rb in start-x-0.0.2
- old
+ new
@@ -4,40 +4,41 @@
require 'commander'
require 'yaml'
require 'start_x/config'
require 'start_x/project'
+require 'start_x/version'
-module Startx
+module StartX
class Runner
include Commander::Methods
# include whatever modules you need
def run
program :name, 'starters'
- program :version, '0.0.1'
+ 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|
- Starters::Config.new
+ 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|
- Starters::Project.new
+ StartX::Project.new
end
end
run!
end