Skip to content

Releases: python-cmd2/cmd2

Plugin: External Test 2.0.0 (June 7, 2021)

07 Jun 18:10
Compare
Choose a tag to compare

Version update to match Cmd2 2.0 release.
No changes to plugin.

1.5.0 (January 31, 2021)

31 Jan 21:40
Compare
Choose a tag to compare
  • Bug Fixes
    • Fixed bug where setting always_show_hint=True did not show a hint when completing Settables
    • Fixed bug in editor detection logic on Linux systems that do not have which
    • Fixed bug in table creator where column headers with tabs would result in an incorrect width calculation
    • Fixed FileNotFoundError which occurred when running history --clear and no history file existed.
  • Enhancements
    • Added silent_startup_script option to cmd2.Cmd.__init__(). If True, then the startup script's
      output will be suppressed. Anything written to stderr will still display.
    • cmd2 now uses pyreadline3 when running Python 3.8 or greater on Windows
  • Notes
    • This is the last release planned to support Python 3.5

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.