Install-or-refresh prompt rules in a copilot-instructions.md file.
(instructions_path: &Path)
| 451 | |
| 452 | /// Install-or-refresh prompt rules in a copilot-instructions.md file. |
| 453 | fn install_prompt_rules(instructions_path: &Path) -> Result<()> { |
| 454 | let block = super::prompt_rules::standard_prompt_rules( |
| 455 | PROMPT_RULE_MARKER, |
| 456 | &PromptRulesOptions { |
| 457 | extra_paragraphs: &[], |
| 458 | }, |
| 459 | ); |
| 460 | super::prompt_rules::reconcile_prompt_rules(instructions_path, PROMPT_RULE_MARKER, &block) |
| 461 | } |
| 462 | |
| 463 | /// Remove tracedecay rules from a copilot-instructions.md file. |
| 464 | fn uninstall_prompt_rules(instructions_path: &Path) { |
no test coverage detected