WIP: progress dots

Based on @chriskuehl's branch here:
- f7213054ac
This commit is contained in:
Anthony Sottile 2019-10-19 13:30:02 -07:00
parent 4bd6529c05
commit f21257cdba
15 changed files with 69 additions and 31 deletions

View file

@ -54,7 +54,10 @@ def get_hook_message(
)
if end_len:
return start + '.' * (cols - len(start) - end_len - 1)
num_dots = cols - len(start) - end_len - 1
if end_msg is None:
return start, num_dots
return start + '.' * num_dots
else:
return '{}{}{}{}\n'.format(
start,