Skip to main content

Module format

Module format 

Source
Expand description

Terminal output utilities with color support.

This module provides colored terminal output that respects:

  • NO_COLOR environment variable (https://no-color.org/)
  • TTY detection (colors disabled when not a terminal)
  • --json mode (colors disabled for machine-readable output)

Structs§

JsonResponse
Standard JSON response structure for all commands.
Output
Terminal output helper with color support.

Functions§

is_json_mode
Check if JSON mode is enabled.
set_json_mode
Set JSON mode for the current process.