summaryrefslogtreecommitdiff
path: root/examples/persistent_history.py
Commit message (Collapse)AuthorAgeFilesLines
* Add black for automatic code formatTodd Leonhardt2021-01-311-0/+1
|
* Updated various documentation and tests to not use loadTodd Leonhardt2019-06-151-2/+2
|
* Removed support for cmd.cmdqueueKevin Van Brunt2019-06-111-2/+1
| | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member
* Refactor exit_code implementationTodd Leonhardt2019-05-201-1/+1
| | | | | | | | | | | | cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer Also: - Refactored examples to call sys.exit(app.cmdloop()) in their __main__ - Running transcript tests now sets the exit_code accordingly based on success/failure - Updated CHANGELOG - Updated README - Updated Sphinx docs - Added unit test for case when transcript test fails
* Standardize cmd2 imports in tests and exampleskotfu2018-05-231-1/+1
|
* Removed the expensive imports from cmd2/__init__.pyEric Lin2018-04-251-1/+1
| | | | | | | Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369
* Started removing dependency on sixTodd Leonhardt2018-04-151-1/+1
| | | | | | | Removed all dependency on six other than for six.moves.input Also: - Started removing code branches which were for Python 2 support
* Make sure pexpect uses same version of Python to spawn persistent history ↵Todd Leonhardt2018-02-091-4/+14
| | | | example
* First past at unit test for persistent history featureTodd Leonhardt2018-02-091-0/+1
| | | | | | Added pexpect to modules required for running unit tests. This opens the door for carefully crafted complex unit tests to verify intricate behavior. Tests like this are somewhat painful to write and slow to execute. However, they can enable testing complicated interactive behavior that we otherwise probably would not be able to test.
* Added optional persistent readline history featureTodd Leonhardt2018-02-081-0/+22
- Including an example and info in the Sphinx docs Also: - Created CHANGELOG entry for 0.8.1 release - Added info to README about new sub-menu feature - Bumped version to 0.8.1 TODO: - Added a unit test for the persistent readline history feature