lib.ExecContext.log_delim(): No interactive footer

lib.ExecContext.log_delim() logs a header not designed for enclosing
command output, and, hence, no footer should be output. This commit
suppresses it.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-27 05:58:50 +01:00
commit 9b208ecc1e

View file

@ -122,7 +122,8 @@ class ExecContext(abc.ABC):
def log_delim(self, start: bool) -> None:
if not self.__verbose:
return None
if start and self.__interactive:
if self.__interactive: # Don't log footer in interative mode
if start:
log(NOTICE, self.__delim)
return
delim = ',' + self.__delim + ' >' if start else '`' + self.__delim + ' <'