| 3707 | } |
| 3708 | |
| 3709 | int cbm_upsert_instructions(const char *path, const char *content) { |
| 3710 | if (!path || !content) { |
| 3711 | return CLI_ERR; |
| 3712 | } |
| 3713 | if (ensure_parent_dir(path) != CLI_OK) { |
| 3714 | return CLI_ERR; |
| 3715 | } |
| 3716 | return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0 |
| 3717 | ? CLI_OK |
| 3718 | : CLI_ERR; |
| 3719 | } |
| 3720 | |
| 3721 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3722 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
no test coverage detected