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

Function cbm_crush_config_path

src/cli/cli.c:2986–2994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2984}
2985
2986static void cbm_crush_config_path(const char *home_dir, char *out, size_t out_sz) {
2987 char env_buf[CLI_BUF_1K];
2988 const char *custom = cbm_safe_getenv("CRUSH_GLOBAL_CONFIG", env_buf, sizeof(env_buf), NULL);
2989 if (custom && custom[0]) {
2990 snprintf(out, out_sz, "%s", custom);
2991 return;
2992 }
2993 snprintf(out, out_sz, "%s/.config/crush/crush.json", home_dir);
2994}
2995
2996static void cbm_goose_config_dir(const char *home_dir, char *out, size_t out_sz) {
2997#ifdef _WIN32

Callers 3

cbm_detect_agentsFunction · 0.85

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected