Skip to main content

write_managed_section

Function write_managed_section 

Source
pub fn write_managed_section(
    source: &Utf8Path,
    managed_abs_paths: &[Utf8PathBuf],
) -> Result<()>
Expand description

Write or replace yui’s managed .gitignore section in the repo root, listing every absolute path the apply pipeline produced as a sibling-without-suffix (rendered .tera outputs AND decrypted .age outputs share this section). The block is delimited by # >>> yui rendered (auto-managed) >>> / # <<< yui rendered (auto-managed) <<< so successive runs idempotently rewrite it without disturbing user content above or below.