Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion rich_objects/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,18 @@ def display(
console: Optional[Console] = None,
config: Optional[TableConfig] = None,
) -> None:
"""Display the data provided in obj, according to the formating arguments."""
"""Display the data provided in obj, according to the formating arguments.

Arguments:
obj: object to be displayed
fmt: controls the json/table/yaml output formatting (default=table)
style: controls color/bold highlighting (default=all)
indent: conroles number of indented spaces in json/yaml output (default=2)
columns: used to control columns for a list of items, use a '*' as last argument to get remaining data.
console: overrides default rich.Console, so you can provide additional highlighers.
config: controls table parameters (e.g. labels, max-widths, row properties)

"""
no_color = style != OutputStyle.ALL
highlight = style != OutputStyle.NONE
console = console or console_factory(no_color=no_color, highlight=highlight)
Expand Down
Loading