| 3467 | #endif |
| 3468 | |
| 3469 | static 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 | } |
| 3480 | static 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, |
no test coverage detected