You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A screen reader is not the only consumer that prefers a linear, minimal-width stream over a terminal-wide 2D layout. Command output is also pasted into bug reports, piped into other tools, and read on narrow screens. A layout that imposes a maximal width (full-width tables, box-drawing borders, whitespace-padded columns) wraps awkwardly or [grows a horizontal scrollbar](https://github.com/callowayproject/bump-my-version/pull/23#issuecomment-1602007874) once it leaves the terminal it was sized for, while a stream rendered at the minimal width of its text travels everywhere intact.
290
289
291
290
This is the same reasoning that keeps Click Extra from routing its help screens through [`rich-click`](https://github.com/ewels/rich-click), a good project integrating [Rich](https://github.com/Textualize/rich) with Click whose [help is laid out in a table](https://github.com/ewels/rich-click) spanning the whole terminal width. `--accessible` carries that preference from help screens to colors and tables. The two are not mutually exclusive, though: nothing stops you from using `rich-click` and Click Extra together and taking the best of both.
Copy file name to clipboardExpand all lines: docs/theme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Now invocations of the `weather` CLI pick up the light theme without passing `--
44
44
|[`dracula`](#dracula)| 24-bit RGB | High-contrast dark theme with vivid neon accents. |
45
45
|[`nord`](#nord)| 24-bit RGB | Cool-toned dark theme built around frost-blue and aurora accents. |
46
46
|[`monokai`](#monokai)| 24-bit RGB | Classic dark theme with high-saturation magenta and lime accents. |
47
-
|[`manpage`](#manpage)| None (monochrome) | Bold literals, italic replaceable, no color. Shadows a man page. |
47
+
|[`manpage`](#manpage)| None (monochrome) | Bold literals, italic replaceable, no color. Shadows a man page. |
48
48
49
49
Each row is keyed by the `--theme` choice value; access the instance via `BUILTIN_THEMES["<name>"]` (e.g. `BUILTIN_THEMES["dark"]`). Click any name to jump to that theme's [palette listing](#palettes) below.
Copy file name to clipboardExpand all lines: docs/tutorial.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,25 +217,25 @@ Notice in the example above how the `@command()` decorator from Cloup is used wi
217
217
218
218
Click Extra provides these additional, pre-configured options decorators you can use standalone. Some of them are included by default in the {py:func}`@extra_command and @extra_group <click_extra.commands.default_extra_params>` decorators (see the last column):
Because single-letter options are a scarce resource, Click Extra does not impose them on you. All the options above are specified with their long names only. You can always customize them to add a short name if you wish.
0 commit comments