Skip to main content

add_tree

Function add_tree 

Source
pub fn add_tree(
    all: &[Pack],
    name: &str,
    only: Option<&[String]>,
    model: &Path,
    force: bool,
) -> Result<Vec<(String, Added)>, String>
Expand description

Add name and everything it needs or includes to a model (see plan). Nothing is written unless every pack in the plan can go in: requirements met (at a version that satisfies the range), no namespace shared with a different pack, and no clash with something the pack does not own (unless force). Nodes you changed since an earlier version of the pack went in are kept, not overwritten (unless force). Returns what happened to each pack, in the order added.