Skip to main content

Module render

Module render 

Source

Enums§

OutputFormat
Output format selected by the operator.

Constants§

BOLD
CYAN
DIM
GREEN
RED
RESET
YELLOW

Functions§

bin_name
The binary name registered via set_bin_name. Defaults to "vta" (the offline binary’s name) when nothing has been registered, so shared handlers still produce a syntactically valid command string.
is_full_display
Current full-display mode. List commands check this to choose between table and full-form output.
is_json_output
Returns true when the operator passed --json. List commands check this and dispatch to a JSON serializer instead of their human- readable renderer.
output_format
Current output format. Default Human.
print_cli_error
Print a CLI error to stderr in a form an operator can act on.
print_full_entry
Emit a list entry as aligned label: value lines. Used in full-display mode where ratatui-Table truncation would hide full identifiers.
print_full_list_title
Print a bold section heading used above a list of full-display entries. Matches the title style of the table-mode block borders.
print_json
Pretty-print a serializable value as JSON to stdout. Used by list commands when is_json_output is true. Errors here are surfaced as a CLI error rather than a panic so the caller can render via print_cli_error.
print_section
print_widget
push_ansi_bg
push_ansi_fg
push_ansi_mod
set_bin_name
Register the binary name used in operator-facing hints. Call once at CLI startup. Only the first call sticks; later calls are ignored so that nested invocations (e.g. unit tests) don’t clobber it.
set_full_display
Enable or disable full-display output. Called once at CLI startup from the global flag.
set_output_format
Register the output format. Called once at CLI startup from the global --json flag.