Skip to main content

status

Function status 

Source
pub fn status(
    source: Option<Utf8PathBuf>,
    icons_override: Option<IconsMode>,
    no_color: bool,
) -> Result<()>
Expand description

Show every src→dst pair’s drift state against the current host.

Walks each [[mount.entry]]’s source tree, honoring .yuilink markers (PassThrough = single dir-level link, Override = one or more custom dsts), classifies each pair via crate::absorb::classify, and additionally surfaces any render drift — rendered files whose content has diverged from what the matching .tera template would produce now (i.e. the user edited the rendered file in place without reflecting the change back into the template).

Exits non-zero (via anyhow::bail!) when anything diverges, so yui status && … can gate workflows on a clean tree.