mapm-cli 6.1.0

The command-line implementation of mapm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::utils::cli_display::{display, problems_to_string};
use crate::utils::views::{parse_views, problem_names_to_problems};
use std::path::Path;

pub fn view(
    problem_dir: &Path,
    problems: Vec<String>,
    hide: Option<Vec<String>>,
    show: Option<Vec<String>>,
) {
    let views = parse_views(hide, show);
    let problem_display =
        problems_to_string(&problem_names_to_problems(problem_dir, &problems, views));
    display(&problem_display);
}