Skip to content

0.9.2 (June 28, 2018)

Compare
Choose a tag to compare
@tleonhardt tleonhardt released this 29 Jun 04:30
· 2575 commits to master since this release
e03c6c2
  • Bug Fixes
    • Fixed issue where piping and redirecting did not work correctly with paths that had spaces
  • Enhancements
    • Added ability to print a header above tab-completion suggestions using completion_header member
    • Added pager and pager_chop attributes to the cmd2.Cmd class
      • pager defaults to less -RXF on POSIX and more on Windows
      • pager_chop defaults to less -SRXF on POSIX and more on Windows
    • Added chop argument to cmd2.Cmd.ppaged() method for displaying output using a pager
      • If chop is False, then self.pager is used as the pager
      • Otherwise self.pager_chop is used as the pager
    • Greatly improved the table_display.py example
      • Now uses the new tableformatter module which looks better than tabulate
  • Deprecations
    • The CmdResult helper class is deprecated and replaced by the improved CommandResult class
      • CommandResult has the following attributes: stdout, stderr, and data
        • CmdResult had attributes of: out, err, war
      • CmdResult will be deleted in the next release