Skip to content

Commit

Permalink
- Added Array::parse for usage with highlines ask method
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 6, 2008
1 parent 1f8eab7 commit bf550a9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Manifest.txt
README.txt
Rakefile
bin/commander
commander.gemspec
lib/commander.rb
lib/commander/command.rb
lib/commander/commander.rb
lib/commander/core_ext/array.rb
lib/commander/help_generators.rb
lib/commander/help_generators/default.rb
lib/commander/interaction.rb
lib/commander/manager.rb
lib/commander/version.rb
spec/all_spec.rb
Expand Down
2 changes: 1 addition & 1 deletion bin/commander
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ command :init do |c|
puts
name = ask 'What is your programs machine name?'
description = ask 'Describe your program:'
commands = ask_for_list 'List the sub-commands you wish to create:'
commands = ask 'List the sub-commands you wish to create:', Array
begin
filepath = args.shift
File.open(filepath, 'w') do |f|
Expand Down
2 changes: 1 addition & 1 deletion commander.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.email = ["tj@vision-media.ca"]
s.executables = ["commander"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/commander", "lib/commander.rb", "lib/commander/command.rb", "lib/commander/commander.rb", "lib/commander/help_generators.rb", "lib/commander/help_generators/default.rb", "lib/commander/interaction.rb", "lib/commander/manager.rb", "lib/commander/version.rb", "spec/all_spec.rb", "spec/commander_spec.rb", "spec/manager_spec.rb"]
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/commander", "lib/commander.rb", "lib/commander/command.rb", "lib/commander/commander.rb", "lib/commander/help_generators.rb", "lib/commander/help_generators/default.rb", "lib/commander/manager.rb", "lib/commander/version.rb", "spec/all_spec.rb", "spec/commander_spec.rb", "spec/manager_spec.rb"]
s.has_rdoc = true
s.homepage = %q{ Open source sub-command framework.}
s.rdoc_options = ["--main", "README.txt"]
Expand Down
2 changes: 1 addition & 1 deletion lib/commander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
$:.unshift(File.expand_path(File.dirname(__FILE__)))

require 'commander/commander'
require 'highline/import'

class Object
include Commander
include Commander::Interaction
end
2 changes: 1 addition & 1 deletion lib/commander/commander.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

require 'commander/version'
require 'commander/interaction'
require 'commander/command'
require 'commander/manager'
require 'commander/help_generators'
require 'commander/core_ext/array'
require 'optparse'

module Commander
Expand Down

0 comments on commit bf550a9

Please sign in to comment.