aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-11-22 21:59:50 -0700
committernotgne22020-11-22 21:59:50 -0700
commit435ecf9d0076d492d2b3f350d909066b94ed31fb (patch)
tree10c24adbff0c63d089602ce15212d32c6821fdad
parent551dd1c3042743c373bf10cb8d14fac52bf26351 (diff)
Print deployment if interactive mode is disabled
Diffstat (limited to '')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
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 {