mapm-cli 6.1.0

The command-line implementation of mapm
1
2
3
4
5
6
7
8
9
10
11
use std::{fs, path::Path};

pub fn delete(problem_dir: &Path, names: Vec<String>) {
    for name in names {
        delete_one(problem_dir, name);
    }
}

fn delete_one(problem_dir: &Path, name: String) {
    fs::remove_file(problem_dir.join(format!("{}.yml", name))).expect("Failed to remove problem");
}