From 0d40ff8ce6010b6e602909b5e97ce0660a365404 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 10 Jul 2021 11:04:16 +0200 Subject: [PATCH] osc co/up: highlight pending requests' header Found myself to mentally miss the request list of 1 pending rq and so I am pitching the idea of subtle boldening for experimentation. --- osc/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 24241621..cfd2beca 100644 --- a/osc/core.py +++ b/osc/core.py @@ -7441,7 +7441,9 @@ def print_request_list(apiurl, project, package = None, states = ('new', 'review if not conf.config['check_for_request_on_action'] and not force: return requests = get_request_list(apiurl, project, package, req_state=states) - msg = 'Pending requests for %s: %s (%s)' + msg = '\nPending requests for %s: %s (%s)' + if sys.stdout.isatty(): + msg = '\033[1m{}\033[0m'.format(msg) if package is None and len(requests): print(msg % ('project', project, len(requests))) elif len(requests):