Skip to content

Commit

Permalink
Stop table wrapping
Browse files Browse the repository at this point in the history
Found out that the table automatically handles the terminal not being
wide enough. Looks better to not wrap any of the columns.
  • Loading branch information
naddeoa committed Jan 2, 2024
1 parent d252622 commit a6cbebd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions booty/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ def status(self) -> StatusResult:
}

table = Table(title="Target Status", show_header=True, show_edge=False, title_style="bold", box=SIMPLE)

table.add_column("Target", no_wrap=True, width=20)
table.add_column("Dependencies", width=20)
table.add_column("Status", width=20)
table.add_column("Dependencies", width=20, no_wrap=True)
table.add_column("Status", width=20, no_wrap=True)
table.add_column("Details", width=70, no_wrap=True)
table.add_column("Time", justify="right", width=10)

Expand Down Expand Up @@ -174,9 +173,9 @@ def install_missing(self, status_result: StatusResult) -> StatusResult:

table = Table(title="Setup Status", show_header=True, show_edge=False, title_style="bold", box=SIMPLE)
table.add_column("Target", no_wrap=True, width=20)
table.add_column("Status", width=20)
table.add_column("Status", width=20, no_wrap=True)
table.add_column("Details", width=93, no_wrap=True)
table.add_column("Time", justify="right", width=10)
table.add_column("Time", justify="right", width=10, no_wrap=True)

missing_packages = set([*status_result.missing, *status_result.errors])
overall_progress = Progress()
Expand Down

0 comments on commit a6cbebd

Please sign in to comment.