Sha256: 1a7e5327064f513a268a5bb0de663a407322b9af7560bc70efc13ba4bca40f04

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 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
 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_commander-0.3.1 bin/simple_commander