diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-14 20:51:21 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-14 20:51:21 -0700 |
commit | c8ba8b94950edcad47f791cceec949f174ea7c71 (patch) | |
tree | dbae3fa7482c24d6cca9a52d597f498c61d18be0 /cmd2/ansi.py | |
parent | 9c6f1304816707e38c74926c93f62e48836b95c9 (diff) | |
parent | 013b9e0a2c75e17f8aa0e0f7cbe50d84d2f657d8 (diff) | |
download | cmd2-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.py | 15 |
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: |