stree 0.2.0

A directory hierarchy mapping format, similar to mtree
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use stree::*;

fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>>
{
    if std::env::args().count() < 2
    {
        eprintln!("usage: basic <PATH>");
        std::process::exit(2);
    }
    let path = std::env::args().nth(1).expect("args.count() lied if this fails");
    println!("{}", Tree::new(&path, None)?);
    Ok(())
}