| 2392 | } |
| 2393 | |
| 2394 | static 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 | |
| 2404 | static void cbm_copilot_config_dir(const char *home_dir, char *out, size_t out_sz) { |
| 2405 | char env_buf[CLI_BUF_1K]; |
no test coverage detected