Sha256: 43021c175bc49c6906fb49d9d31d4fc42237509610d39d4035f1dad1946a163f

Contents?: true

Size: 958 Bytes

Versions: 5

Compression:

Stored size: 958 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'

require 'rubygems'
require 'simple_commander/import'

program :name, 'simple_commander'
program :version, SimpleCommander::VERSION
program :description, 'Simple Commander utility program.'
helpers 'IO'

command :init do
	syntax      'simple_commander init <optional_path defaults to ./ > '
	description 'Add this folder to the simple commander path as the default folder for scripts'
	
	action do |args, options|
		cli = SimpleCommander::CLI.new	
		cli.init
	end
end

command 'show config' do
	syntax      'show config'	
	description 'show the current configuration'

	action do |args, options|
		cli = SimpleCommander::CLI.new
		cli.show_config
	end
end

command :new do
	action do |args, options|
		cli = SimpleCommander::CLI.new
		cli.new(args[0])
	end
end

command "exec path" do
	action do |args, options|
		cli = SimpleCommander::CLI.new
		cli.set_exec_path args[0]
	end
end
 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_commander-0.6.1 bin/simple_commander
simple_commander-0.6.0 bin/simple_commander
simple_commander-0.5.1 bin/simple_commander
simple_commander-0.5.0 bin/simple_commander
simple_commander-0.4.0 bin/simple_commander