summaryrefslogtreecommitdiff
path: root/examples/exit_code.py
Commit message (Collapse)AuthorAgeFilesLines
* No longer using -1 as an exit codeexit_codeKevin Van Brunt2021-03-231-1/+1
|
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Attempt to fix remaining black failuresTodd Leonhardt2021-01-311-4/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-3/+2
|
* 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/+2
| | | | | | | 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
* Refactor exit_code implementationTodd Leonhardt2019-05-201-9/+5
| | | | | | | | | | | | 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
* Added a couple unit tests of the exit code featureTodd Leonhardt2018-08-231-4/+2
|
* Added way of returning a non-zero exit code to the shellTodd Leonhardt2018-08-231-0/+45