Parse file instead of command vec
This commit is contained in:
parent
e9cff194d3
commit
a0781d574d
3 changed files with 14 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ pub struct Opt {
|
|||
fn main() -> anyhow::Result<()> {
|
||||
let opt = Opt::from_args();
|
||||
let content = fs::read_to_string(&opt.file)?;
|
||||
let commands = parse::parse(&opt.file, &content)?;
|
||||
println!("{:#?}", commands);
|
||||
let file = parse::parse(&opt.file, &content)?;
|
||||
println!("{:#?}", file);
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue