| 3282 | } |
| 3283 | |
| 3284 | int cbm_upsert_instructions(const char *path, const char *content) { |
| 3285 | if (!path || !content) { |
| 3286 | return CLI_ERR; |
| 3287 | } |
| 3288 | if (ensure_parent_dir(path) != CLI_OK) { |
| 3289 | return CLI_ERR; |
| 3290 | } |
| 3291 | return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0 |
| 3292 | ? CLI_OK |
| 3293 | : CLI_ERR; |
| 3294 | } |
| 3295 | |
| 3296 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3297 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
no test coverage detected