topmark.cli.help¶
Shared helpers for Rich Click command help output.
This module builds small Rich renderables used by rich-click help output.
The helpers are intentionally limited to human-facing command help. They should not be used for machine-readable output, runtime reports, or pipeline rendering. Click remains the authoritative runtime, validation, context, and shell completion layer.
HelpExample
dataclass
¶
Command-help example shown in a Rich Click epilog.
Attributes:
| Name | Type | Description |
|---|---|---|
summary |
str
|
Short human-readable explanation of the command. |
command_line |
str
|
CLI command line to show below the description. |
render_examples_epilog ¶
Build a styled Rich Click epilog for examples and optional notes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
examples
|
Sequence[HelpExample]
|
Command examples to render in order. |
required |
notes
|
Sequence[str] | None
|
Optional note lines rendered after the examples section. |
None
|
Returns:
| Type | Description |
|---|---|
Text
|
A Rich |
Text
|
epilog. |