Skip to main content

splice_agents_block

Function splice_agents_block 

Source
pub fn splice_agents_block(existing: Option<&str>, block: &str) -> String
Expand description

The whole AGENTS.md content after splicing the rendered block.

A fresh file where none exists, the block replaced in place where one is marked, appended after the target’s own content otherwise — release-kit owns the lines inside the markers, not the document.