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

Function cbm_opencode_config_path

src/cli/cli.c:2394–2402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2392}
2393
2394static void cbm_opencode_config_path(const char *home_dir, char *out, size_t out_sz) {
2395 char env_buf[CLI_BUF_1K];
2396 const char *custom = cbm_safe_getenv("OPENCODE_CONFIG", env_buf, sizeof(env_buf), NULL);
2397 if (custom && custom[0]) {
2398 snprintf(out, out_sz, "%s", custom);
2399 return;
2400 }
2401 snprintf(out, out_sz, "%s/.config/opencode/opencode.json", home_dir);
2402}
2403
2404static void cbm_copilot_config_dir(const char *home_dir, char *out, size_t out_sz) {
2405 char env_buf[CLI_BUF_1K];

Callers 3

cbm_detect_agentsFunction · 0.85
uninstall_cli_agentsFunction · 0.85

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected