Skip to content

0.9.4 (August 21, 2018)

Compare
Choose a tag to compare
@tleonhardt tleonhardt released this 21 Aug 03:25
· 2505 commits to master since this release
  • Bug Fixes
    • Fixed bug where preparse was not getting called
    • Fixed bug in parsing of multiline commands where matching quote is on another line
  • Enhancements
    • Improved implementation of lifecycle hooks to support a plugin
      framework, see docs/hooks.rst for details.
    • New dependency on attrs third party module
    • Added matches_sorted member to support custom sorting of tab-completion matches
    • Added tab_autocomp_dynamic.py example
      • Demonstrates updating the argparse object during init instead of during class construction
  • Deprecations
    • Deprecated the following hook methods, see hooks.rst for full details:
      • cmd2.Cmd.preparse() - equivalent functionality available
        via cmd2.Cmd.register_postparsing_hook()
      • cmd2.Cmd.postparsing_precmd() - equivalent functionality available
        via cmd2.Cmd.register_postparsing_hook()
      • cmd2.Cmd.postparsing_postcmd() - equivalent functionality available
        via cmd2.Cmd.register_postcmd_hook()