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

Function config_key_lookup

src/cli/cli.c:6819–6826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6817}
6818
6819static const config_key_def_t *config_key_lookup(const char *key) {
6820 for (size_t i = 0; key && i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) {
6821 if (strcmp(CONFIG_KEYS[i].key, key) == 0) {
6822 return &CONFIG_KEYS[i];
6823 }
6824 }
6825 return NULL;
6826}
6827
6828static void config_print_unknown_key(const char *key) {
6829 (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : "");

Callers 1

cbm_cmd_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected