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

Function cbm_cline_hook_path

src/cli/cli.c:5616–5624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5614 "UserPromptSubmit", "PreCompact"};
5615
5616static int cbm_cline_hook_path(const char *cline_root, const char *event, char *path,
5617 size_t path_size) {
5618#ifdef _WIN32
5619 int written = snprintf(path, path_size, "%s/hooks/%s.ps1", cline_root, event);
5620#else
5621 int written = snprintf(path, path_size, "%s/hooks/%s", cline_root, event);
5622#endif
5623 return written > 0 && (size_t)written < path_size ? CLI_OK : CLI_ERR;
5624}
5625
5626static int cbm_build_cline_context_script(const char *binary_path, const char *event, char *script,
5627 size_t script_size) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected