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
14
15
use stree::*;

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