Skip to content

Commit 86bd5e7

Browse files
committed
💄 style(utils): clean up command output formatting
1 parent 8307321 commit 86bd5e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tgit/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ def simple_run_command(command: str) -> None:
5858

5959
def run_command(command: str) -> None:
6060
if settings.show_command:
61-
print() # noqa: T201
61+
console.print()
6262
console.print("[cyan]The following command will be executed:[/cyan]")
63-
console.print(Syntax(command, "bash", line_numbers=False, theme="github-dark", background_color="default", word_wrap=True))
64-
63+
console.print()
64+
console.print(Syntax(command, "bash", theme="github-dark", word_wrap=True))
65+
console.print()
6566
if not settings.skip_confirm:
6667
ok = questionary.confirm("Do you want to continue?", default=True).ask()
6768
if not ok:

0 commit comments

Comments
 (0)