This is updated when a new version is pushed to http://rubygems.org
- DSL change: Command descriptions can be provided using
desc
. You can still pass the description as an argument tocommand
, but will be deprecated in a future version. (thanks @kowsik) - Partially-typed strings are now passed when calling a parameter's block. You can use this to more efficiently build the list of completions. This is especially useful for things like database queries or other remote API calls.
- Format help command so that descriptions are always aligned
- Rescue and print exceptions
- Display suggestions when command is not found
- Exit immediately on Ctrl-C
- Tab completing a
*param
will now include the completions for the following word if the*param
has already been matched at least once - [BUG] Use the cached parameter values, when available
- DSL change:
desc
was renamed togroup
- Tab completion will now list only the completions for the current word, instead of
the whole command. This makes it behave like bash and works much better with
*params
- Hitting ENTER with an empty line will no longer print a Command Not Found error
- DSL change:
variable
&dynamic_variable
were renamed toparam
- A glob parameter (e.g.
*param
) will now return its matches as an array of strings - Quoted strings will now work as expected with glob parameters
- Dynamic variables are cached until the next command is run
- Added LICENSE.txt
- Allow the command prompt to be changed while it's running
- Quoted strings will now match to a single
:param
- Use a
*param
to match one or more words - [BUG] Don't memoize Command#regex. This prevented dynamic variables from working correctly after the values changed
- Initial release