Skip to content

Releases: python-cmd2/cmd2

1.4.0 (November 11, 2020)

12 Nov 02:45
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed tab completion crash on Windows
  • Enhancements
    • Changed how multiline doc string help is formatted to match style of other help messages

1.3.11 (October 1, 2020)

01 Oct 16:50
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed issue where quoted redirectors and terminators in aliases and macros were not being restored when read from a startup script.
    • Fixed issue where instantiating more than one cmd2-based class which uses the @as_subcommand_to decorator resulted in duplicated help text in the base command the subcommands belong to.

1.3.10 (September 17, 2020)

18 Sep 02:59
d348f09
Compare
Choose a tag to compare

1.3.10 (September 17, 2020)

  • Enhancements
    • Added user-settable option called always_show_hint. If True, then tab completion hints will always display even when tab completion suggestions print. Arguments whose help or hint text is suppressed will not display hints even when this setting is True.
    • argparse tab completion now groups flag names which run the same action. Optional flags are wrapped in brackets like it is done in argparse usage text.
    • default category decorators are now heritable by default and will propagate the category down the class hierarchy until overridden. There's a new optional flag to set heritable to false.
    • Added --silent flag to alias/macro create. If used, then no confirmation message will be printed when aliases and macros are created or overwritten.
    • Added --with_silent flag to alias/macro list. Use this option when saving to a startup script that should silently create aliases and macros.
  • Bug Fixes
    • Fixed issue where flag names weren't always sorted correctly in argparse tab completion

Plugin: External Test 0.2.0 (September 20, 2020)

11 Sep 13:29
Compare
Choose a tag to compare
  • Updates version to 0.2.0
  • Updates documentation to reflect the plugin's new home inside of the cmd2 main repository.

1.3.9 (September 03, 2020)

04 Sep 03:17
Compare
Choose a tag to compare
  • Breaking Changes
    • CommandSet.on_unregister() is now called as first step in unregistering a CommandSet and not the last. CommandSet.on_unregistered() is now the last step.
  • Enhancements
    • Added CommandSet.on_registered(). This is called by cmd2.Cmd after a CommandSet is registered and all its commands have been added to the CLI.
    • Added CommandSet.on_unregistered(). This is called by cmd2.Cmd after a CommandSet is unregistered and all its commands have been removed from the CLI.

1.3.8 (August 28, 2020)

28 Aug 05:11
36b0b75
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed issue where subcommand added with @as_subcommand_to decorator did not display help when called with -h/--help.
  • Enhancements
    • add_help=False no longer has to be passed to parsers used in @as_subcommand_to decorator.
      Only pass this if your subcommand should not have the -h/--help help option (as stated in argparse documentation).

1.3.7 (August 27, 2020)

27 Aug 22:25
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixes an issue introduced in 1.3.0 with processing command strings containing terminator/separator character(s) that are manually passed to a command that uses argparse.

1.3.6 (August 27, 2020)

27 Aug 17:41
Compare
Choose a tag to compare
  • Breaking changes
    • The functions cmd2 adds to Namespaces (get_statement() and get_handler()) are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2.
  • Deprecations
    • Namespace.__statement__ will be removed in cmd2 2.0.0. Use Namespace.cmd2_statement.get() going forward.

1.3.5 (August 25, 2020)

25 Aug 16:01
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed RecursionError when printing an argparse.Namespace caused by custom attribute cmd2 was adding
  • Enhancements
    • Added get_statement() function to argparse.Namespace which returns __statement__ attribute

1.3.4 (August 20, 2020)

21 Aug 00:00
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is loaded during cmd2.Cmd.__init__().
  • Enhancements
    • Improved exception messages when using mock without spec=True. See testing documentation for more details on testing cmd2-based applications with mock.