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:3490–3500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3488#endif
3489
3490static int cbm_reconcile_codex_hooks_command(const char *config_path, const char *command,
3491 const char *command_windows,
3492 cbm_toml_codex_hook_action_t action, bool check_only) {
3493 if (!config_path || !command || !command_windows) {
3494 return CLI_ERR;
3495 }
3496 return cbm_toml_reconcile_codex_hooks(config_path, CODEX_HOOK_BEGIN, CODEX_HOOK_END, command,
3497 command_windows, action, check_only ? 1 : 0) == 0
3498 ? CLI_OK
3499 : CLI_ERR;
3500}
3501static int cbm_upsert_codex_hooks_command(const char *config_path, const char *command,
3502 const char *command_windows) {
3503 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