gamesheet_sdk.admin.cli.shared.rendering module

Rendering utilities for CLI commands.

gamesheet_sdk.admin.cli.shared.rendering.render_get_command(data, output_format, output_path, fields_spec=None)[source]

Render get command output (single object as key-value pairs).

Parameters:
  • data (dict[str, Any] | BaseModel) – The object to render (dict or pydantic model)

  • output_format (str) – Output format (json, yaml, csv, tsv, or tabulate format)

  • output_path (str | None) – Optional file path to write output to

  • fields_spec (str | None) – Optional comma-separated field names to include

gamesheet_sdk.admin.cli.shared.rendering.render_list_command(items, output_format, output_path, columns_spec=None)[source]

Render list command output (table of objects).

Parameters:
  • items (list[Any]) – List of objects to render (dicts or pydantic models)

  • output_format (str) – Output format (json, yaml, csv, tsv, or tabulate format)

  • output_path (str | None) – Optional file path to write output to

  • columns_spec (str | None) – Optional comma-separated column names to include

gamesheet_sdk.admin.cli.shared.rendering.render_penalty_report(report, output_format, output_path)[source]

Render penalty report output.

Parameters:
  • report (dict[str, Any]) – The penalty report dictionary to render

  • output_format (str) – Output format (json or yaml)

  • output_path (str | None) – Optional file path to write output to