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

Function cbm_cline_hook_path

src/cli/cli.c:5020–5028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5018 "UserPromptSubmit", "PreCompact"};
5019
5020static int cbm_cline_hook_path(const char *cline_root, const char *event, char *path,
5021 size_t path_size) {
5022#ifdef _WIN32
5023 int written = snprintf(path, path_size, "%s/hooks/%s.ps1", cline_root, event);
5024#else
5025 int written = snprintf(path, path_size, "%s/hooks/%s", cline_root, event);
5026#endif
5027 return written > 0 && (size_t)written < path_size ? CLI_OK : CLI_ERR;
5028}
5029
5030static int cbm_build_cline_context_script(const char *binary_path, const char *event, char *script,
5031 size_t script_size) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected