Remove rust code (#6)
Reviewed-on: #6 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
-39
@@ -1,39 +0,0 @@
|
||||
use std::env;
|
||||
|
||||
mod parser;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
if args.len() < 2 {
|
||||
println!("Provide path to file");
|
||||
return;
|
||||
}
|
||||
|
||||
let filepath: &String = args.get(1).unwrap();
|
||||
|
||||
println!("Filepath is: {:?}", filepath);
|
||||
|
||||
let myparser = parser::parser::NumberParser {
|
||||
filepath: filepath.clone(),
|
||||
};
|
||||
|
||||
let rawvalues = myparser.filedump();
|
||||
|
||||
let parsed_values = myparser.updatevalues(&rawvalues);
|
||||
|
||||
let newupdated = myparser.removedups(&parsed_values);
|
||||
|
||||
myparser.print_values(&newupdated, true);
|
||||
|
||||
let result = myparser.save_file(parsed_values);
|
||||
|
||||
match result {
|
||||
Ok(o) => {
|
||||
println!("Successfully saved file: {:?}", o);
|
||||
}
|
||||
Err(er) => {
|
||||
println!("Error saving file: {:?}", er);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user