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

Function config_ui_read

src/cli/cli.c:7656–7664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7654}
7655
7656static void config_ui_read(const char *key, char *out, size_t out_sz) {
7657 cbm_ui_config_t ui;
7658 cbm_ui_config_load(&ui);
7659 if (strcmp(key, CBM_CONFIG_UI_ENABLED) == 0) {
7660 snprintf(out, out_sz, "%s", ui.ui_enabled ? "true" : "false");
7661 } else {
7662 snprintf(out, out_sz, "%d", ui.ui_port);
7663 }
7664}
7665
7666static int config_ui_write(const char *key, const char *value) {
7667 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