maram 0.2.0

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

fn main() -> maram::Result<()> {
    let options = MaramOptions { output: OutputFormat::Plain, ..Default::default() };
    let mut file = File::create("tree.txt")?;
    generate_to_writer(".", &options, &mut file)?;
    println!("Wrote tree to tree.txt");
    Ok(())
}