Skip to main content

update_installed

Function update_installed 

Source
pub fn update_installed(
    templates_dir: &Path,
    store: &Store,
    hub_slug: &str,
    force: bool,
) -> Result<TemplateRecord, TemplateError>
Expand description

Overwrite an installed hub template in place with the catalog’s current graph, bumping hub_version. When force is false and the user has edited the file (mtime > installed_at), returns a Refused error so the frontend can prompt the user before clobbering local edits.