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

Function config_ui_read

src/cli/cli.c:6620–6628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6618}
6619
6620static void config_ui_read(const char *key, char *out, size_t out_sz) {
6621 cbm_ui_config_t ui;
6622 cbm_ui_config_load(&ui);
6623 if (strcmp(key, CBM_CONFIG_UI_ENABLED) == 0) {
6624 snprintf(out, out_sz, "%s", ui.ui_enabled ? "true" : "false");
6625 } else {
6626 snprintf(out, out_sz, "%d", ui.ui_port);
6627 }
6628}
6629
6630static int config_ui_write(const char *key, const char *value) {
6631 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