diff --git a/src/python/jw/pkg/lib/util.py b/src/python/jw/pkg/lib/util.py index 06722b37..9378c8a2 100644 --- a/src/python/jw/pkg/lib/util.py +++ b/src/python/jw/pkg/lib/util.py @@ -31,7 +31,8 @@ async def run_cmd( throw: bool = True, verbose: bool = False, cmd_input: str|None = None, - env: dict[str, str] | None = None + env: dict[str, str] | None = None, + title: str=None ) -> tuple[str|None, str|None]: """ Run a command asynchronously and return its output @@ -75,7 +76,7 @@ async def run_cmd( if verbose: delim_len = 120 - delim = f'---- running {pretty_cmd(args, wd)} -' + delim = title if title is not None else f'---- Running {pretty_cmd(args, wd)} -' delim += '-' * max(0, delim_len - len(delim)) log(NOTICE, ',' + delim + ' >')