diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 21:28:06 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 21:28:06 -0500 |
commit | ede9f3e77a59281a442227ed9b4b92e62e85d2b9 (patch) | |
tree | b87239799cf71c67704d3ffe7bc0879d57056d3e /cmd2/__init__.py | |
parent | c7ac2e965d025806ce5baddfc718814e3e58d639 (diff) | |
download | cmd2-git-ede9f3e77a59281a442227ed9b4b92e62e85d2b9.tar.gz |
Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background colors which style() can now optionally use
This is to make it easier to autocomplete color names in an IDE
Diffstat (limited to 'cmd2/__init__.py')
-rw-r--r-- | cmd2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/__init__.py b/cmd2/__init__.py index cc5a0963..43578e46 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -10,7 +10,7 @@ except DistributionNotFound: # package is not installed pass -from .ansi import style +from .ansi import style, fg, bg from .argparse_custom import Cmd2ArgumentParser, CompletionError, CompletionItem, set_default_argument_parser # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER |