Compare commits

..

1 commit

Author SHA1 Message Date
1c0e7ee5a9
lib.ExecContext.CallContext.log_delim: Beautify
Some checks failed
CI / Packaging - Kali Linux (pull_request) Failing after 16s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Failing after 16s
CI / Packaging test (pull_request) Failing after 0s

Make the log delimiter look more consistent: Whether a CallContext was constructed with a title parameter or without, prefix its .log_delimiter property with a "----".

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-11 13:58:19 +02:00

View file

@ -115,12 +115,14 @@ class ExecContext(Base):
throw: bool,
verbose: bool | None,
) -> None:
if title is None:
title = f'{parent.uri}: Running {self.pretty_cmd} -'
self.__cmd = cmd
self.__wd = wd
self.__log_prefix = log_prefix
self.__parent = parent
self.__title = title
self.__pretty_cmd: str | None = None
self.__title = f'{parent.uri}: Running {self.pretty_cmd} -'
self.__delim = f'---- {title} -'
delim_len = 120
self.__delim += '-' * max(0, delim_len - len(self.__delim))