Remove printers
This commit is contained in:
parent
7e286eace5
commit
aba453b571
|
@ -11,6 +11,9 @@ glob = "0.3.1"
|
||||||
serde = { version = "1.0.197", features = ["derive"] }
|
serde = { version = "1.0.197", features = ["derive"] }
|
||||||
serde_yaml = "0.9.34"
|
serde_yaml = "0.9.34"
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
opt-level = 0
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
strip = true # Automatically strip symbols from the binary.
|
strip = true # Automatically strip symbols from the binary.
|
||||||
opt-level = "z" # Optimize for size.
|
opt-level = "z" # Optimize for size.
|
||||||
|
|
|
@ -32,7 +32,8 @@ pub fn run (arguments: &Arguments) -> Result<(), String> {
|
||||||
|
|
||||||
// Resolve dependencies based on the directory structure
|
// Resolve dependencies based on the directory structure
|
||||||
// (In the future this will be configurable based on a dependency config field)
|
// (In the future this will be configurable based on a dependency config field)
|
||||||
// let config_structure: ConfigStructure = resolve_config_structure(configs);
|
let config_structure: ConfigStructure = resolve_config_structure(configs)?;
|
||||||
|
println!("config_structure: {:?}", config_structure);
|
||||||
|
|
||||||
// Gather the tasks from the config
|
// Gather the tasks from the config
|
||||||
// let task_structure: TaskStructure = resolve_task_structure(config_structure, task_name);
|
// let task_structure: TaskStructure = resolve_task_structure(config_structure, task_name);
|
||||||
|
@ -45,6 +46,28 @@ pub fn run (arguments: &Arguments) -> Result<(), String> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
struct ConfigStructure {
|
||||||
|
config: Config,
|
||||||
|
child: HashMap<String, ConfigStructure>
|
||||||
|
}
|
||||||
|
|
||||||
|
fn resolve_config_structure(_configs: Vec<Config>) -> Result<ConfigStructure, String> {
|
||||||
|
let _path_map: HashMap<PathBuf, Config> = HashMap::new();
|
||||||
|
|
||||||
|
// TODO: Create a recursive method that creates the config structure based on the directories.
|
||||||
|
let config_structure = ConfigStructure {
|
||||||
|
config: Config{
|
||||||
|
name: "".to_string(),
|
||||||
|
tasks: Default::default(),
|
||||||
|
path: Default::default(),
|
||||||
|
},
|
||||||
|
child: HashMap::new()
|
||||||
|
};
|
||||||
|
|
||||||
|
Ok(config_structure)
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
enum TaskType {
|
enum TaskType {
|
||||||
SHELL
|
SHELL
|
||||||
|
|
Loading…
Reference in New Issue