Progress
This commit is contained in:
parent
8e2a03e3a7
commit
cbd6eb52b1
4 changed files with 63 additions and 0 deletions
21
src/config.rs
Normal file
21
src/config.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
pub struct UserConfig {
|
||||
main_file: Option<String>,
|
||||
test_file: Option<String>,
|
||||
includes: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
pub struct Config {
|
||||
main_file: String,
|
||||
test_file: String,
|
||||
includes: Vec<String>,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
main_file: "main.c".into(),
|
||||
test_file: "test.c".into(),
|
||||
includes: vec![],
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
use clap::{Parser, Subcommand};
|
||||
|
||||
pub mod check;
|
||||
pub mod config;
|
||||
pub mod run;
|
||||
pub mod tasks;
|
||||
pub mod test;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue