Skip to main content

install_bundled

Function install_bundled 

Source
pub fn install_bundled(agent: &BundledAgent, agents_dir: &Path) -> Result<()>
Expand description

Write one bundled blueprint into <agents_dir>/<name>/, replacing whatever is there.

The existing tree is removed first rather than merged over: a stale file from an older version of the blueprint (a tool script that was dropped, say) would otherwise survive forever and keep being loaded. This mirrors what lev add’s directory install already does.