summaryrefslogtreecommitdiff
path: root/examples/exit_code.py
Commit message (Collapse)AuthorAgeFilesLines
* 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