Start parsing lines
This commit is contained in:
parent
f6c249393b
commit
2a1560cfb9
3 changed files with 117 additions and 0 deletions
16
src/parse.rs
Normal file
16
src/parse.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use std::fs;
|
||||
use std::path::Path;
|
||||
|
||||
use crate::commands::Command;
|
||||
|
||||
use self::line::parse_lines;
|
||||
|
||||
mod line;
|
||||
|
||||
pub fn parse(file: &Path) -> anyhow::Result<Vec<Command>> {
|
||||
let content = fs::read_to_string(file)?;
|
||||
let lines = parse_lines(&content)?;
|
||||
|
||||
println!("{:#?}", lines);
|
||||
todo!()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue