Skip to content

Commit 465f4b4

Browse files
committed
💄 style(utils): improve console output formatting
1 parent 4d7cfc5 commit 465f4b4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tgit/utils.py

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

5959
def run_command(command: str) -> None:
6060
if settings.show_command:
61-
console.print()
62-
console.print("[cyan]The following command will be executed:[/cyan]")
63-
console.print()
64-
console.print(Syntax(command, "bash", theme="github-dark", word_wrap=True))
65-
console.print()
61+
console.print("\n[cyan]The following command will be executed:[/cyan]")
62+
console.print(Syntax(f"\n{command}\n", "bash", line_numbers=False, theme="github-dark", background_color="default", word_wrap=True))
6663
if not settings.skip_confirm:
6764
ok = questionary.confirm("Do you want to continue?", default=True).ask()
6865
if not ok:

0 commit comments

Comments
 (0)