no longer show prefix

This commit is contained in:
Jörg Thalheim
2024-12-03 21:34:11 +01:00
parent 7158f64800
commit ee88e70a9f
2 changed files with 7 additions and 12 deletions

View File

@@ -83,8 +83,10 @@ def handle_io(
return b""
# Extra information passed to the logger
stdout_extra = {"command_prefix": prefix}
stderr_extra = {"command_prefix": prefix}
stdout_extra = {}
stderr_extra = {}
if prefix:
stdout_extra["command_prefix"] = stderr_extra["command_prefix"] = prefix
if msg_color and msg_color.stderr:
stdout_extra["color"] = msg_color.stderr.value
if msg_color and msg_color.stdout:
@@ -267,9 +269,6 @@ def run(
if options.cwd is None:
options.cwd = Path.cwd()
if options.prefix is None:
options.prefix = "$"
if options.input:
if any(not ch.isprintable() for ch in options.input.decode("ascii", "replace")):
filtered_input = "<<binary_blob>>"