summaryrefslogtreecommitdiff
path: root/examples/hooks.py
Commit message (Collapse)AuthorAgeFilesLines
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-12/+8
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+3
| | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-1/+0
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Restore self.statement_parser to a public attribute in cmd2.CmdTodd Leonhardt2019-07-101-3/+3
|
* 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