refactored the project using the clap crate
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user