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

Function cbm_resolve_hook_command

src/cli/cli.c:2686–2694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686static int cbm_resolve_hook_command(const char *script_name, char *out, size_t out_sz) {
2687 char env_buf[CLI_BUF_1K];
2688 const char *env = cbm_safe_getenv("CLAUDE_CONFIG_DIR", env_buf, sizeof(env_buf), NULL);
2689#ifdef _WIN32
2690 return cbm_build_claude_hook_command(script_name, env, true, out, out_sz);
2691#else
2692 return cbm_build_claude_hook_command(script_name, env, false, out, out_sz);
2693#endif
2694}
2695
2696#ifdef CBM_CLI_ENABLE_TEST_API
2697int cbm_resolve_claude_hook_command_for_testing(const char *script_name, bool windows,

Calls 2

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected