Expand description
Only module allowed to emit stdout for VPS CRUD.
This module centralizes ALL CRUD formatting: text and JSON.
Logs (tracing) go to stderr, managed by tracing-subscriber.
Functionsยง
- emit_
success - Agent-first success emitter (GAP-AUD-003/008).
- export_
hosts_ to_ json - GAP-SSH-UX-001: hosts for
vps export --json. - is_
quiet - Returns whether quiet mode is active.
- print_
details_ json - Prints a single VPS record as masked JSON.
- print_
details_ text - Prints a single VPS record as masked text.
- print_
doctor_ text - Prints the doctor report as text (GAP-SSH-IO-005).
- print_
error - Prints an error message on stderr (human-facing).
- print_
error_ envelope - Emits a JSON error envelope on stderr (GAP-SSH-IO-003).
- print_
execution_ output - Prints stdout/stderr from an SSH command execution.
- print_
execution_ output_ json - Prints SSH command execution output as JSON.
- print_
health_ check - Prints a health-check result as text.
- print_
health_ check_ json - Prints a health-check result as JSON.
- print_
human_ banner - Human banner (tunnel etc.): Text+TTY+!quiet+!JSON errors only (GAP-SSH-IO-006).
- print_
json_ value - Prints pretty JSON on stdout (API data; always respects quiet=false).
- print_
list_ json - Prints the VPS list as masked JSON.
- print_
list_ text - Prints the VPS list as masked text.
- print_
success - Prints a human success message (suppressed with
--quiet). - print_
transfer_ json - Prints an SCP transfer result as JSON (GAP-SSH-IO-007 / SCP-021 / IO-009).
- print_
tunnel_ listening_ json - JSON event when the local tunnel listener comes up (GAP-SSH-IO-008).
- set_
json_ errors - Sets whether errors are emitted as a JSON envelope on stderr.
- set_
quiet - Sets whether the CLI is in quiet mode (GAP-SSH-IO-004).
- wants_
json_ errors - Returns whether errors should use a JSON envelope.
- write_
line - Writes a line to stdout with pure LF (never CRLF).