Skip to main content

install

Function install 

Source
pub fn install(
    widgets_dir: &Path,
    source: &Path,
    replace: bool,
) -> Result<String, String>
Expand description

Copy the package at source (a folder, a widget.json in one, or a .zip) into the widgets folder; returns its id. Validates first; refuses to replace an existing package unless replace.