Function
_full_msg
(
*,
start: str,
cols: int,
end_msg: str,
end_color: str,
use_color: bool,
postfix: str = '',
)
Source from the content-addressed store, hash-verified
| 44 | |
| 45 | |
| 46 | def _full_msg( |
| 47 | *, |
| 48 | start: str, |
| 49 | cols: int, |
| 50 | end_msg: str, |
| 51 | end_color: str, |
| 52 | use_color: bool, |
| 53 | postfix: str = '', |
| 54 | ) -> str: |
| 55 | dots = '.' * (cols - _len_cjk(start) - len(postfix) - len(end_msg) - 1) |
| 56 | end = color.format_color(end_msg, end_color, use_color) |
| 57 | return f'{start}{dots}{postfix}{end}\n' |
| 58 | |
| 59 | |
| 60 | def filter_by_include_exclude( |