summaryrefslogtreecommitdiff
path: root/examples/async_printing.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into blackTodd Leonhardt2021-02-191-7/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py
| * Merge branch 'master' into 2.0Kevin Van Brunt2021-01-221-2/+7
| |\
| * | Updated async printing example to use thread event instead of a boolean flagKevin Van Brunt2020-08-181-7/+7
| | |
* | | Add in isort changesTodd Leonhardt2021-01-311-1/+3
| | |
* | | Add black for automatic code formatTodd Leonhardt2021-01-311-14/+14
| |/ |/|
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-2/+7
|/ | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-1/+1
| | | | | | | 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
* Updated changelog to address removal of ansi.FG_COLORS and ansi.BG_COLORS ↵Todd Leonhardt2020-02-071-8/+8
| | | | | | | and mention their replacement by ansi.fg and ansi.bg enums Also: - Use ansi.fg in async_printing.py and README.md
* Made example update the prompt less frequentlyKevin Van Brunt2019-08-011-4/+18
|
* Whitespace and doc fixesKevin Van Brunt2019-07-011-1/+1
|
* Improve background color display of prompt in async_printing.py exampleTodd Leonhardt2019-06-281-1/+1
|
* Simplified ansi color dictionaries and lookup methodsTodd Leonhardt2019-06-271-21/+5
| | | | | | | Also: - Updated examples that use color to use cmd2.ansi instead of colorama - Updated tests that use color to use cmd2.ansi instead of colorama - plumbum_colorspy example shows how to override color lookup functions to use a different color library
* 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
* Fixed issue when printing alerts caused by a prompt with a new line characterKevin Van Brunt2019-03-211-4/+4
|
* Fixed how shortcuts are set in examplesTodd Leonhardt2019-03-141-1/+0
|
* Fixed commentKevin Van Brunt2019-02-061-1/+1
|
* Added more examples and documentationKevin Van Brunt2018-09-251-2/+8
|
* Made async stuff publicKevin Van Brunt2018-09-251-8/+8
|
* Made demo more instructiveKevin Van Brunt2018-09-231-92/+103
|
* Added more alerts and updated documentationKevin Van Brunt2018-09-221-12/+39
|
* Recreating the thread in preloop to support multiple calls of cmdloopKevin Van Brunt2018-09-221-1/+3
|
* Updating prompt in example appKevin Van Brunt2018-09-211-7/+43
|
* First version of async printing exampleKevin Van Brunt2018-09-211-0/+121