with builder

This commit is contained in:
2022-11-22 23:12:10 +01:00
parent b7a0e0b96e
commit 367fa16fd7
12 changed files with 254 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
use std::path::{self, PathBuf};
use std::path::PathBuf;
use clap::{Arg, ArgAction, ArgMatches, Command};
use octopush_core::schema::{self, models::Action};
use octopush_core::schema;
use octopush_infra::service_register::ServiceRegister;
pub fn execute_cmd() -> Command {
@@ -53,7 +53,14 @@ pub async fn execute_subcommand(args: &ArgMatches) -> eyre::Result<()> {
paths.push(path);
}
kk
for path in paths {
for action in actions.clone() {
service_register
.executor
.execute(path.clone(), action_path.clone(), action)
.await?;
}
}
}
}