Compare commits
No commits in common. "0954c2322ac6d53f69fe9015a6749418a0917d7a" and "da2c4534302735b266bbe09c323fdd2960725e07" have entirely different histories.
0954c2322a
...
da2c453430
@ -98,12 +98,13 @@ def wrap(command: List[str], config: Path, retries: int, version: bool, dry_run:
|
|||||||
|
|
||||||
MAX_LINES = 20
|
MAX_LINES = 20
|
||||||
lines = stdout.splitlines()
|
lines = stdout.splitlines()
|
||||||
truncated = False
|
|
||||||
if len(lines) > MAX_LINES:
|
if len(lines) > MAX_LINES:
|
||||||
truncated = True
|
|
||||||
lines = lines[-MAX_LINES:]
|
lines = lines[-MAX_LINES:]
|
||||||
message = (
|
message = (
|
||||||
"Command:\n" + " ".join(command) + f'\n\nResult{ " (truncated)" if truncated else ""}:\n' + "\n".join(lines)
|
"Command:\n"
|
||||||
|
+ " ".join(command)
|
||||||
|
+ f'\n\nResult{ " (truncated)" if len(lines) > MAX_LINES else ""}:\n'
|
||||||
|
+ "\n".join(lines)
|
||||||
)
|
)
|
||||||
|
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user