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

Function config_ui_read

src/cli/cli.c:6641–6649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6639}
6640
6641static void config_ui_read(const char *key, char *out, size_t out_sz) {
6642 cbm_ui_config_t ui;
6643 cbm_ui_config_load(&ui);
6644 if (strcmp(key, CBM_CONFIG_UI_ENABLED) == 0) {
6645 snprintf(out, out_sz, "%s", ui.ui_enabled ? "true" : "false");
6646 } else {
6647 snprintf(out, out_sz, "%d", ui.ui_port);
6648 }
6649}
6650
6651static int config_ui_write(const char *key, const char *value) {
6652 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