mapm-cli 6.1.0

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

pub fn rename(problem_dir: &Path, target: String, destination: String) {
    fs::rename(
        problem_dir.join(format!("{}.yml", target)),
        problem_dir.join(format!("{}.yml", destination)),
    )
    .expect("Failed to rename problem");
}