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

Function config_ui_read

src/cli/cli.c:6784–6792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6782}
6783
6784static void config_ui_read(const char *key, char *out, size_t out_sz) {
6785 cbm_ui_config_t ui;
6786 cbm_ui_config_load(&ui);
6787 if (strcmp(key, CBM_CONFIG_UI_ENABLED) == 0) {
6788 snprintf(out, out_sz, "%s", ui.ui_enabled ? "true" : "false");
6789 } else {
6790 snprintf(out, out_sz, "%d", ui.ui_port);
6791 }
6792}
6793
6794static int config_ui_write(const char *key, const char *value) {
6795 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