Skip to main content

remove_dep

Function remove_dep 

Source
pub fn remove_dep(
    mana_dir: &Path,
    from_id: &str,
    dep_id: &str,
) -> Result<DepRemoveResult, Error>
Expand description

Remove a dependency: from_id no longer depends on dep_id.

§Errors

§Example

use mana_core::api::remove_dep;
use std::path::Path;

remove_dep(Path::new("/project/.mana"), "3", "2").unwrap();