Implement Display for all commands
This commit is contained in:
parent
a0781d574d
commit
e678a2bb31
4 changed files with 396 additions and 23 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue