summaryrefslogtreecommitdiff
path: root/examples/initialization.py
Commit message (Collapse)AuthorAgeFilesLines
* Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵Kevin Van Brunt2021-10-181-6/+8
| | | | | | | | | | | | | | cmd2.EightBitBg classes. Added support for 24-bit/RGB colors with the cmd2.RgbFg and cmd2.RgbBg classes. Removed dependency on colorama. Deprecated cmd2.fg. Use cmd2.Fg instead. Deprecated cmd2.bg. Use cmd2.Bg instead. Changed type of ansi.allow_style from a string to an ansi.AllowStyle Enum class. Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.Kevin Van Brunt2021-03-301-1/+1
| | | | | | | | | | Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Removed ability to run Python commands from the command line with py. Made banners and exit messages of Python and IPython consistent. Changed utils.is_text_file() to raise OSError if file cannot be read.
* Resolves comments from PREric Lin2021-03-181-1/+1
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-4/+9
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+5
| | | | 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
* Having two parallel datastructures each for foreground and background colors ↵Todd Leonhardt2020-02-061-4/+3
| | | | | | felt really clunky - now we just have one The Enum classes are now smart and deal with it all.
* Added cmd2.utils.Settable to the cmd2 namespace and updated examples and docsTodd Leonhardt2020-02-041-1/+3
|
* Renamed locals_in_py to self_in_pyTodd Leonhardt2020-01-271-1/+1
| | | | This more accurately reflects what it controls
* Improved example in initialiation docsTodd Leonhardt2020-01-261-0/+60