summaryrefslogtreecommitdiff
path: root/examples/environment.py
Commit message (Collapse)AuthorAgeFilesLines
* Resolves comments from PREric Lin2021-03-181-2/+4
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-5/+2
|
* Fixed example codeKevin Van Brunt2020-02-061-1/+1
|
* Documentation updateskotfu2020-02-051-3/+7
|
* Added cmd2.utils.Settable to the cmd2 namespace and updated examples and docsTodd Leonhardt2020-02-041-3/+3
|
* Refactor exit_code implementationTodd Leonhardt2019-05-201-2/+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
* Changed examples to reflect that settable doesn't need to be updated before ↵Kevin Van Brunt2019-02-201-1/+1
| | | | calling init()
* Standardize cmd2 imports in tests and exampleskotfu2018-05-231-2/+2
|
* 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
* Revise environment setting documentationkotfu2017-08-281-0/+38