maram 0.2.0

A modern, high-performance alternative to the Unix tree command
Documentation
1
2
3
4
5
6
7
8
9
use maram::{generate, FilterOptions, MaramOptions, OutputFormat};

fn main() -> maram::Result<()> {
    let filter = FilterOptions { max_depth: Some(2), ..Default::default() };
    let options = MaramOptions { output: OutputFormat::Tree, filter, ..Default::default() };
    let out = generate(".", &options)?;
    println!("{}", out);
    Ok(())
}