| 3488 | #endif |
| 3489 | |
| 3490 | static 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 | } |
| 3501 | static 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, |
no test coverage detected