bmctools.cli.formatters
Output formatters for CLI.
format_output
def format_output(data: Any, format_type: str = 'json') -> strFormat output data according to the specified format type.
Args: data: Data to format (dict, list, or scalar) format_type: Output format (‘json’, ‘json-pretty’, ‘table’, ‘text’)
Returns: Formatted string
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
data | Any | — | |
format_type | str | 'json' |
Returns: str