MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_cli_diagnostics_configure

Function cbm_cli_diagnostics_configure

src/cli/progress_sink.c:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void cbm_cli_diagnostics_configure(bool quiet_requested, bool verbose_requested) {
101 if (quiet_requested) {
102 /* Keep ERROR records visible while suppressing DEBUG/INFO/WARN. An
103 * explicit CBM_LOG_LEVEL=none remains stronger than --quiet. */
104 if (cbm_log_get_level() < CBM_LOG_ERROR) {
105 cbm_log_set_level(CBM_LOG_ERROR);
106 }
107 return;
108 }
109 if (verbose_requested && cbm_log_get_level() > CBM_LOG_INFO) {
110 cbm_log_set_level(CBM_LOG_INFO);
111 }
112}
113
114bool cbm_cli_progress_enabled(bool explicitly_requested, bool quiet_requested, bool stderr_is_tty) {
115 return !quiet_requested && (explicitly_requested || stderr_is_tty);

Callers 3

run_cliFunction · 0.85
mainFunction · 0.85
test_cli.cFile · 0.85

Calls 2

cbm_log_get_levelFunction · 0.85
cbm_log_set_levelFunction · 0.85

Tested by

no test coverage detected