crawk 0.2.0

Dependency crawler for Rust. It crawls so you don't have to untangle
Documentation
use insta_cmd::get_cargo_bin;
use std::process::Command;

pub(crate) fn crawk() -> Command {
    Command::new(get_cargo_bin("crawk"))
}

pub(crate) fn crawk_modules() -> Command {
    let mut cmd = crawk();
    cmd.arg("-p")
        .arg(concat!(env!("CARGO_MANIFEST_DIR"), "/fixtures/modules"));
    cmd
}

pub(crate) fn crawk_workspace() -> Command {
    let mut cmd = crawk();
    cmd.arg("-p")
        .arg(concat!(env!("CARGO_MANIFEST_DIR"), "/fixtures/workspace"));
    cmd
}