Added Stubs
parent
47d7d81f60
commit
d4a6c1132d
|
@ -16,8 +16,7 @@ fn main() {
|
||||||
let threads = get_threads(cli.threads);
|
let threads = get_threads(cli.threads);
|
||||||
let config = util::config::parse_config(cli.config_file);
|
let config = util::config::parse_config(cli.config_file);
|
||||||
|
|
||||||
//parse the config file
|
assert!(threads > 0);
|
||||||
// let config = parse_config(cli.config_file);
|
|
||||||
|
|
||||||
match &cli.command {
|
match &cli.command {
|
||||||
Command::Validate => validate::validate(verbosity, config),
|
Command::Validate => validate::validate(verbosity, config),
|
||||||
|
|
|
@ -1,7 +1,27 @@
|
||||||
|
use std::{path::PathBuf, fs};
|
||||||
|
|
||||||
use crate::util;
|
use crate::util;
|
||||||
|
|
||||||
pub fn validate(verbosity: u8, config: util::config::Config) {
|
pub fn validate(verbosity: u8, config: util::config::Config) {
|
||||||
println!("Validating");
|
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 {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue