Sha256: 76f9fc1c8f470e2b49804003b06660b73d41cba075b4258d6da440e40e0ecdbb

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

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

require 'git-style-binary/command'
GitStyleBinary.primary do
  version "0.0.1 (c) 2009 Nate Murray - local"
  opt :test_primary, "test an option on the primary", :type => String

  run do |command|
    puts "Primary Options: #{command.opts.inspect}"
  end
end

# OR

# require 'git-style-binary/primary'
# command = GitStyleBinary::primary("wordpress") do
#   version "#{$0} 0.0.1 (c) 2009 Nate Murray"
#   banner <<-EOS
# usage: #{$0} #{all_options.collect(:&to_s).join(" ")} COMMAND [ARGS]
#
# The wordpress subcommands commands are:
# {subcommand_names.pretty_print}
#
# See 'wordpress help COMMAND' for more information on a specific command.
# EOS
#   opt :verbose,  "verbose", :default => false
#   opt :dry,      "dry run", :default => false
#   opt :test_global, "a basic global string option", :type => String
# end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jashmenn-git-style-binaries-0.1.3 test/fixtures/wordpress
jashmenn-git-style-binaries-0.1.4 test/fixtures/wordpress