summaryrefslogtreecommitdiff
path: root/cmd2/ansi.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2020-02-14 20:51:21 -0700
committerkotfu <kotfu@kotfu.net>2020-02-14 20:51:21 -0700
commitc8ba8b94950edcad47f791cceec949f174ea7c71 (patch)
treedbae3fa7482c24d6cca9a52d597f498c61d18be0 /cmd2/ansi.py
parent9c6f1304816707e38c74926c93f62e48836b95c9 (diff)
parent013b9e0a2c75e17f8aa0e0f7cbe50d84d2f657d8 (diff)
downloadcmd2-git-c8ba8b94950edcad47f791cceec949f174ea7c71.tar.gz
Merge branch 'master' into api_docs
# Conflicts: # cmd2/ansi.py # docs/features/completion.rst
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r--cmd2/ansi.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index fbe51b9a..27c9e87a 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -282,22 +282,13 @@ def style(text: Any, *, fg: Union[str, fg] = '', bg: Union[str, bg] = '', bold:
# These can be altered to suit an application's needs and only need to be a
# function with the following structure: func(str) -> str
style_success = functools.partial(style, fg=fg.green)
-"""
-Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors
-text green to signify success.
-"""
+"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify success"""
style_warning = functools.partial(style, fg=fg.bright_yellow)
-"""
-Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors
-text yellow to signify a warning.
-"""
+"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify a warning"""
style_error = functools.partial(style, fg=fg.bright_red)
-"""
-Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors
-text red to signify an error.
-"""
+"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify an error"""
def async_alert_str(*, terminal_columns: int, prompt: str, line: str, cursor_offset: int, alert_msg: str) -> str: