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

Function config_ui_read

src/cli/cli.c:7456–7464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7454}
7455
7456static void config_ui_read(const char *key, char *out, size_t out_sz) {
7457 cbm_ui_config_t ui;
7458 cbm_ui_config_load(&ui);
7459 if (strcmp(key, CBM_CONFIG_UI_ENABLED) == 0) {
7460 snprintf(out, out_sz, "%s", ui.ui_enabled ? "true" : "false");
7461 } else {
7462 snprintf(out, out_sz, "%d", ui.ui_port);
7463 }
7464}
7465
7466static int config_ui_write(const char *key, const char *value) {
7467 cbm_ui_config_t ui;

Callers 1

cbm_cmd_configFunction · 0.85

Calls 1

cbm_ui_config_loadFunction · 0.85

Tested by

no test coverage detected