harbor_cli.output.render
Attributes
T = TypeVar('T')
module-attribute
Classes
Functions
render_result(result: Any, ctx: typer.Context | None = None, **kwargs: Any) -> None
Render the result of a command stdout or file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
result |
T
|
The result of a command. |
required |
ctx |
Context
|
The typer context from the command invocation, by default None |
None
|
**kwargs |
Any
|
Additional keyword arguments to pass to the render function. |
{}
|
Source code in harbor_cli/output/render.py
render_table(result: Any, ctx: typer.Context | None = None, **kwargs: Any) -> None
Render the result of a command as a table.
Source code in harbor_cli/output/render.py
render_table_compact(result: Any, **kwargs: Any) -> None
render_table_full(result: Any, **kwargs: Any) -> None
Source code in harbor_cli/output/render.py
render_json(result: Any, ctx: typer.Context | None = None, **kwargs: Any) -> None
Render the result of a command as JSON.
Source code in harbor_cli/output/render.py
render_raw(result: Any, ctx: typer.Context | None = None, **kwargs: Any) -> None
Render the result of data fetched in raw mode.