render
Rich rendering helpers shared by the fluid-control CLI command handlers.
These helpers require the rich extra and are kept separate from the command
definitions so both the interactive entry point
(fluid_control.cli.cli) and the command handlers
(fluid_control.cli.commands) can reuse them without a circular import.
location_table(loc)
Render an axis-position dict as a Rich table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
loc
|
dict[str, float]
|
Mapping of axis name → position in mm. |
required |
Returns:
| Type | Description |
|---|---|
Table
|
A [ |
Source code in src/fluid_control/cli/render.py
print_result(result)
Print a fluid-control result to the console with status styling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
OperationResult | Sequence[int | str]
|
An |
required |
Source code in src/fluid_control/cli/render.py
status_table(status)
Render a fluid-control status dict as a Rich table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
status
|
dict
|
Status dict as returned by
|
required |
Returns:
| Type | Description |
|---|---|
Table
|
A [ |