create-proyect-cli 2.2.0

CLI para crear proyectos rápidamente (Express, Rust, Python, Angular, Vue, React)
1
2
3
4
5
6
7
8
9
10
11
use std::fs;

pub fn delete_repo(location: &str) {
    println!("Eliminando repositorio...");

    match fs::remove_dir_all(location) {
        Ok(_) => println!("✔ Repositorio eliminado"),

        Err(e) => println!("✖ Error eliminando repo: {}", e),
    }
}