Install-or-refresh prompt rules in AGENTS.md.
(prompt_path: &Path)
| 229 | |
| 230 | /// Install-or-refresh prompt rules in AGENTS.md. |
| 231 | fn install_prompt_rules(prompt_path: &Path) -> Result<()> { |
| 232 | let block = super::prompt_rules::standard_prompt_rules( |
| 233 | PROMPT_RULE_MARKER, |
| 234 | &PromptRulesOptions { |
| 235 | extra_paragraphs: &[], |
| 236 | }, |
| 237 | ); |
| 238 | super::prompt_rules::reconcile_prompt_rules(prompt_path, PROMPT_RULE_MARKER, &block) |
| 239 | } |
| 240 | |
| 241 | // --------------------------------------------------------------------------- |
| 242 | // Uninstall helpers |
no test coverage detected