diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 15:45:34 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 15:45:34 -0400 |
commit | 9dd00461b22085d3f16b4cc178a222c30fe95d11 (patch) | |
tree | e1644047665caf1d15860be388510fe7b7b61d1a /examples/python_scripting.py | |
parent | 916060bde828d8911ec2bbb4db54396212514481 (diff) | |
download | cmd2-git-9dd00461b22085d3f16b4cc178a222c30fe95d11.tar.gz |
Add the -a/--all flag to the history command for showing all commands including those persisted from previous sessions
Also:
- History class has been modified to keep track of the session start index
- History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default
- If a start index is manually specified, then it automatically includes the full search
- Updates unit tests
Diffstat (limited to 'examples/python_scripting.py')
0 files changed, 0 insertions, 0 deletions