Added Stubs

pull/5/head
Ayrton Chilibeck 2024-01-12 22:56:38 -07:00
parent 47d7d81f60
commit d4a6c1132d
Signed by: ayrton
GPG Key ID: BAE24A03DCBF160D
2 changed files with 21 additions and 2 deletions

View File

@ -16,8 +16,7 @@ fn main() {
let threads = get_threads(cli.threads);
let config = util::config::parse_config(cli.config_file);
//parse the config file
// let config = parse_config(cli.config_file);
assert!(threads > 0);
match &cli.command {
Command::Validate => validate::validate(verbosity, config),

View File

@ -1,7 +1,27 @@
use std::{path::PathBuf, fs};
use crate::util;
pub fn validate(verbosity: u8, config: util::config::Config) {
println!("Validating");
// get list of all file names in input/output
let in_files: Vec<PathBuf>;
let out_files: Vec<PathBuf>;
// check if they end in .in or .out respectively
// make sure each has a match
}
fn get_dir_files(path: PathBuf) -> Result<Vec<PathBuf>, &'static str> {}
fn check_suffix(path: PathBuf, suf: String) -> bool {
return
}
fn check_match(path1: PathBuf, path2: PathBuf, in_suf: String, out_suf: String) -> bool {
}