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

Function cbm_build_augment_command

src/cli/cli.c:3283–3290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3281#define CODEX_HOOK_END "# <<< codebase-memory-mcp SessionStart <<<"
3282
3283static int cbm_build_augment_command(const char *binary_path, char *out, size_t out_size) {
3284 char quoted[CLI_BUF_8K];
3285 if (cbm_shell_quote_word(binary_path, quoted, sizeof(quoted)) != CLI_OK) {
3286 return CLI_ERR;
3287 }
3288 int written = snprintf(out, out_size, "%s hook-augment", quoted);
3289 return written > 0 && (size_t)written < out_size ? CLI_OK : CLI_ERR;
3290}
3291
3292static int cbm_build_augment_dialect_command(const char *binary_path, const char *dialect,
3293 char *out, size_t out_size) {

Calls 1

cbm_shell_quote_wordFunction · 0.85

Tested by

no test coverage detected