mercenary

An easier way to build your command-line scripts in Ruby.

MIT License

Downloads
24.3M
Stars
150
Committers
12

Bot releases are hidden (Show)

mercenary - v0.3.6

Published by parkr over 8 years ago

Bug Fixes

  • Presenter: Options should include those from parent command (#42)
mercenary - v0.3.5

Published by parkr almost 10 years ago

Bug Fixes

  • Capture OptionsParser::InvalidOption and show a nice error message (#38)
  • Absolute paths for requires and autoloads (#39)

Development Fixes

  • Bump to RSpec 3 (#40)
mercenary - v0.3.4

Published by parkr over 10 years ago

Bug Fixes

  • Use option object as key in the command's @map hash (#35)
mercenary - v0.3.3

Published by parkr over 10 years ago

Bug Fixes

  • The --version flag should not exit with code 1, but instead code 0. (#33)
mercenary - v0.3.2

Published by parkr over 10 years ago

Bug Fixes

  • Remove duplicate commands from help output; show aliases w/command names
    (#29)
mercenary - v0.3.1

Published by parkr over 10 years ago

Minor Enhancements

  • Add -t/--trace to list of options in help message (#19)

Bug Fixes

  • Mercenary::Option now accepts return values in the form of Class constants
    (#22)
mercenary - v0.3.0

Published by parkr over 10 years ago

Major Enhancements

  • Officially drop 1.8.7 support (#14)
  • Allow Commands to set their own versions (#17)
  • Show subcommands, options and usage in help and attach to all commands (#18)
  • Add -t, --trace to allow full exception backtrace to print, otherwise print
    just the error message (#19)

Minor Enhancements

  • Logging state is maintained throughout process (#12)
  • Tidy up Command#logger output (#21)

Development Fixes

  • Added specs for Program (#13)
mercenary - v0.2.1

Published by parkr almost 11 years ago

Bug Fixes

  • Added missing comma to fix '-v' and '--version' options (#9)
mercenary - v0.1.0

Published by parkr almost 11 years ago

Major Enhancements

  • It works!

Minor Enhancements

  • Add a logger to Command
  • Add --version switch to all programs

Bug Fixes

  • Fix Command#syntax and Command#description's handing of setting vs getting
  • Fix load path problem in lib/mercenary.rb

Development Fixes

  • Add TomDoc to everything
  • Add a couple starter specs
  • Add TravisCI badge
  • Add Travis configuration
mercenary - v0.2.0

Published by parkr almost 11 years ago

Major Enhancements

  • Add Command#default_command to specify a default command if none is given
    by the user at runtime (#7)

Minor Enhancements

  • Add Command#execute to execute the actions of a command (#6)

Development Fixes

  • Add standard GitHub bootstrap and cibuild scripts to script/ (#2)