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

Function cbm_reconcile_codex_hooks_command

src/cli/cli.c:3469–3479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3467#endif
3468
3469static int cbm_reconcile_codex_hooks_command(const char *config_path, const char *command,
3470 const char *command_windows,
3471 cbm_toml_codex_hook_action_t action, bool check_only) {
3472 if (!config_path || !command || !command_windows) {
3473 return CLI_ERR;
3474 }
3475 return cbm_toml_reconcile_codex_hooks(config_path, CODEX_HOOK_BEGIN, CODEX_HOOK_END, command,
3476 command_windows, action, check_only ? 1 : 0) == 0
3477 ? CLI_OK
3478 : CLI_ERR;
3479}
3480static int cbm_upsert_codex_hooks_command(const char *config_path, const char *command,
3481 const char *command_windows) {
3482 return cbm_reconcile_codex_hooks_command(config_path, command, command_windows,

Callers 4

cbm_remove_codex_hooksFunction · 0.85
uninstall_cli_agentsFunction · 0.85

Calls 1

Tested by

no test coverage detected