summaryrefslogtreecommitdiff
path: root/cmd2/__init__.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 21:28:06 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 21:28:06 -0500
commitede9f3e77a59281a442227ed9b4b92e62e85d2b9 (patch)
treeb87239799cf71c67704d3ffe7bc0879d57056d3e /cmd2/__init__.py
parentc7ac2e965d025806ce5baddfc718814e3e58d639 (diff)
downloadcmd2-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__.py2
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