Skip to main content

Module output

Module output 

Source
Expand description

Output control for quiet mode and JSON output

Provides a global quiet mode flag to suppress non-essential output.

Functions§

is_quiet
Check if quiet mode is enabled
print_info
Print a message only if not in quiet mode (non-macro version for better compatibility) Uses stderr to avoid corrupting stdout-based protocols (MCP, JSON output)
print_warn
Print a warning to stderr only if not in quiet mode (non-macro version)
set_quiet
Enable quiet mode (suppresses informational output)