Skip to main content

install

Function install 

Source
pub fn install(
    layout: &Layout,
    apply: bool,
    force: bool,
) -> Result<Vec<String>, AppError>
Expand description

Install every embedded skill under each root, previewing by default.

record is the user-scope digest record: read to tell a stale copy this tool wrote from a file the user edited, and rewritten after a successful apply. A failure to write the record is not a failure of the install — the files landed — so it costs only the benefit of the doubt next time.

§Errors

AppError::Refused when a destination cannot be touched, when one holds bytes neither reference accounts for and force is not set, or when a write fails partway; the destinations are restored before that last one returns. I/O errors when a destination cannot be read.