treeflow 0.2.0

CLI tool for simplified Git worktree management to speed up switching contexts when working collaboratively.
Documentation
#[cfg(test)]
mod utils;

#[cfg(test)]
mod base_tests {
    use tempdir::TempDir;
    use crate::utils::treeflow_command::TreeflowCommand;

    #[test]
    fn no_subcommand_fail_with_help() {
        let config_dir = TempDir::new("config_dir").expect("Temp dir");
        TreeflowCommand::new(config_dir.into_path())
            .cmd()
            .assert()
            .failure()
            .stderr(predicates::str::contains("requires a subcommand"));
    }

    #[test]
    fn wrong_subcommand_fails_with_help() {
        let config_dir = TempDir::new("config_dir").expect("Temp dir");
        TreeflowCommand::new(config_dir.into_path())
            .cmd()
            .arg("wrong-subcommand")
            .assert()
            .failure()
            .stderr(predicates::str::contains("unrecognized subcommand 'wrong-subcommand'"));
    }
}