use stree::*;
fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>>
{
if std::env::args().count() < 2
{
eprintln!("usage: full <PATH>");
std::process::exit(2);
}
let path = std::env::args().nth(1).expect("args.count() lied if this fails");
let config = EntryConfig::new()
.checksums(&[Hash::Blake3, Hash::Crc32c])
.inode(true)
.nlink(true)
.access_time(true)
.change_time(true)
.birth_time(true)
.device(true)
.special_device(true)
.link_target(true)
.link_real(true);
println!("{}", Tree::new(&path, Some(&config)).unwrap());
Ok(())
}