Skip to content
Myr

✨ Allow custom styles for commands in help output (#1103)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TheTechromancer · committed by GitHub · parent f12ecec · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:typer/rich_utils.py+2 added-1 removed
61 unmodified lines
62STYLE_COMMANDS_TABLE_PADDING = (0, 1)63STYLE_COMMANDS_TABLE_BOX = ""64STYLE_COMMANDS_TABLE_ROW_STYLES = None65STYLE_COMMANDS_TABLE_BORDER_STYLE = None66STYLE_COMMANDS_TABLE_FIRST_COLUMN = "bold cyan"67STYLE_ERRORS_PANEL_BORDER = "red"68ALIGN_ERRORS_PANEL: Literal["left", "center", "right"] = "left"69STYLE_ERRORS_SUGGESTION = "dim"70STYLE_ABORTED = "red"
417 unmodified lines
488 )489 # Define formatting in first column, as commands don't match highlighter490 # regex491 commands_table.add_column(491 style="bold cyan",492 style=STYLE_COMMANDS_TABLE_FIRST_COLUMN,493 no_wrap=True,494 width=cmd_len,495 )496
236 unmodified lines