cargo-group 0.1.2

Create and Modify workspaces from the terminal
1
2
3
4
5
6
7
8
use std::process::Command;

pub fn init(path: &str) {
    std::fs::write(format!("{}.gitignore", path), "target/\nCargo.lock")
        .expect("Failed to write \".gitignore\"");

    Command::new("git").args(["init"]).output().unwrap();
}