refactored the project using the clap crate

This commit is contained in:
2023-03-08 21:35:15 +01:00
parent e469576d2c
commit 4b789e60c9
10 changed files with 92 additions and 233 deletions

View File

@@ -1,19 +1,6 @@
use std::collections::HashMap;
use super::executions::build_execution::BuildExecution;
use super::{executions::build_execution::BuildExecution, traits::Command};
pub struct Build;
impl Command for Build {
fn execute(&self, _args: &HashMap<String, String>) -> Result<(), String> {
let mut build_execution = BuildExecution::new();
return build_execution.execute();
}
fn new() -> Self
where
Self: Sized,
{
return Build {}
}
pub fn build() -> () {
let mut build_execution = BuildExecution::new();
build_execution.execute().expect("build failed")
}