diff options
author | notgne2 | 2020-11-22 21:59:50 -0700 |
---|---|---|
committer | notgne2 | 2020-11-22 21:59:50 -0700 |
commit | 435ecf9d0076d492d2b3f350d909066b94ed31fb (patch) | |
tree | 10c24adbff0c63d089602ce15212d32c6821fdad /src | |
parent | 551dd1c3042743c373bf10cb8d14fac52bf26351 (diff) |
Print deployment if interactive mode is disabled
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 4 |
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 { |