Upgrade to release 8.0.0:
- Drop support for Python 2 and 3.5.
- Colorama is always installed on Windows in order to provide
style and color support.
- Adds a repr to Command, showing the command name for friendlier
debugging.
- Add support for distinguishing the source of a command line
parameter.
- Add an optional parameter to ProgressBar.update to set the
current_item.
- New class attributes make it easier to use custom core objects
throughout an entire application.
- Use Context.with_resource() to manage resources that would
normally be used in a with statement, allowing them to be used
across subcommands and callbacks, then cleaned up when the
context ends.
- The result object returned by the test runner’s invoke() method
has a return_value attribute with the value returned by the
invoked command.
- Required arguments with the Choice type show the choices in
curly braces to indicate that one is required ({a|b|c}).
- Redesign the shell completion system.
- Completion correctly parses command line strings with incomplete
quoting or escape sequences.
- Fix formatting when Command.options_metavar is empty.
- Revert adding space between option help text that wraps.
- When defining a parameter, default is validated with multiple
and nargs. More validation is done for values being processed
as well.
- HelpFormatter.write_text uses the full line width when wrapping
text.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>