From 435ecf9d0076d492d2b3f350d909066b94ed31fb Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sun, 22 Nov 2020 21:59:50 -0700 Subject: Print deployment if interactive mode is disabled --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d72051f..29da6ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -320,6 +320,8 @@ enum RunDeployError { ProfileWithoutNode, #[error("Error processing deployment definitions: {0}")] DeployDataDefsError(#[from] utils::DeployDataDefsError), + #[error("Failed to make printable TOML of deployment: {0}")] + TomlFormat(#[from] toml::ser::Error), #[error("{0}")] PromptDeploymentError(#[from] PromptDeploymentError), } @@ -439,6 +441,8 @@ async fn run_deploy( if interactive { prompt_deployment(&parts[..])?; + } else { + print_deployment(&parts[..])?; } for (deploy_data, deploy_defs) in &parts { -- cgit v1.2.3