Implement Display for all commands

This commit is contained in:
Joscha 2021-11-20 00:12:40 +01:00
parent a0781d574d
commit e678a2bb31
4 changed files with 396 additions and 23 deletions

View file

@ -4,6 +4,7 @@ use std::path::PathBuf;
use structopt::StructOpt;
mod commands;
mod format;
mod parse;
#[derive(Debug, StructOpt)]
@ -16,6 +17,6 @@ fn main() -> anyhow::Result<()> {
let opt = Opt::from_args();
let content = fs::read_to_string(&opt.file)?;
let file = parse::parse(&opt.file, &content)?;
println!("{:#?}", file);
print!("{}", file);
Ok(())
}