summaryrefslogtreecommitdiff
path: root/examples/hooks.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixing some examplesKevin Van Brunt2019-07-041-5/+0
|
* Began work to minimize public APITodd Leonhardt2019-06-151-3/+3
|
* Fix unit test failures I introduced in last commitTodd Leonhardt2019-06-151-2/+2
|
* Refactor exit_code implementationTodd Leonhardt2019-05-201-1/+2
| | | | | | | | | | | | 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
* Converted class attributes which aren't intended to be dynamically settable ↵Todd Leonhardt2019-03-141-1/+1
| | | | | | | | | | | | | | | to instance attributes The following are now instance attributes: - allow_cli_args - default_to_shell - quit_on_sigint The following class attribute was deleted due to lack of use: - reserved_words The following instance attribute was deleted due to lack of use: - keywords
* Made hooks.py executableTodd Leonhardt2018-09-281-0/+0
|
* Updated abbreviation example to use new cmd2 function to resolve command ↵Kevin Van Brunt2018-09-281-5/+5
| | | | functions
* Address feedback in PRkotfu2018-07-211-2/+2
|
* Add hook examplekotfu2018-07-211-0/+115