mani 0.6.0

Mani provides an in-memory manifest of related files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Verify the manifest's properties.

use arrrg::CommandLine;

use mani::{Manifest, ManifestOptions};

fn main() {
    let (options, roots) =
        ManifestOptions::from_command_line("USAGE: mani-verify [OPTIONS] <root>");
    if roots.len() != 1 {
        eprintln!("must provide exactly one manifest root");
        std::process::exit(1);
    }
    for err in Manifest::verify(options, &roots[0]) {
        println!("{}", err);
    }
}