|
@@ -30,13 +30,18 @@ async fn main() -> Result<()> {
|
|
|
} => {
|
|
} => {
|
|
|
docker::serve(&config, &recipe, &cluster, keep, dry_run).await?;
|
|
docker::serve(&config, &recipe, &cluster, keep, dry_run).await?;
|
|
|
}
|
|
}
|
|
|
- Commands::Logs { recipe, follow } => {
|
|
|
|
|
- let (cluster, recipe) = resolve_cluster_for_recipe(&config, &recipe).await?;
|
|
|
|
|
- docker::show_logs(&config, &cluster, &recipe.name, follow, dry_run).await?;
|
|
|
|
|
|
|
+ Commands::Logs {
|
|
|
|
|
+ recipe: recipe_name,
|
|
|
|
|
+ follow,
|
|
|
|
|
+ } => {
|
|
|
|
|
+ let (cluster, _recipe) = resolve_cluster_for_recipe(&config, &recipe_name).await?;
|
|
|
|
|
+ docker::show_logs(&config, &cluster, &recipe_name, follow, dry_run).await?;
|
|
|
}
|
|
}
|
|
|
- Commands::Stop { recipe } => {
|
|
|
|
|
- let (cluster, recipe) = resolve_cluster_for_recipe(&config, &recipe).await?;
|
|
|
|
|
- docker::stop_cluster(&config, &cluster, &recipe.name, dry_run).await?;
|
|
|
|
|
|
|
+ Commands::Stop {
|
|
|
|
|
+ recipe: recipe_name,
|
|
|
|
|
+ } => {
|
|
|
|
|
+ let (cluster, _recipe) = resolve_cluster_for_recipe(&config, &recipe_name).await?;
|
|
|
|
|
+ docker::stop_cluster(&config, &cluster, &recipe_name, dry_run).await?;
|
|
|
}
|
|
}
|
|
|
Commands::Health {
|
|
Commands::Health {
|
|
|
cluster: cluster_name,
|
|
cluster: cluster_name,
|