aboutsummaryrefslogtreecommitdiff
path: root/src/utils/mod.rs
diff options
context:
space:
mode:
authornotgne22020-10-13 19:06:40 -0700
committernotgne22020-10-13 19:06:40 -0700
commitea717911bac5ff29d730d80d4b774fe17ed1e851 (patch)
tree560b1b66fe9109c5781ecf2ad5f2637939163922 /src/utils/mod.rs
parent3bd43f92e6c59f65b6120886c4ee75b6a9391522 (diff)
Clean up some CLI arguments, make magic rollback optional
Diffstat (limited to '')
-rw-r--r--src/utils/mod.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 672a9ba..a0e62e1 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -26,6 +26,9 @@ pub struct CmdOverrides {
pub fast_connection: Option<bool>,
pub auto_rollback: Option<bool>,
pub hostname: Option<String>,
+ pub magic_rollback: Option<bool>,
+ pub temp_path: Option<String>,
+ pub confirm_timeout: Option<u16>,
}
#[derive(PartialEq, Debug)]
@@ -184,10 +187,13 @@ pub fn make_deploy_data<'a, 's>(
merged_settings.ssh_opts = ssh_opts.split(' ').map(|x| x.to_owned()).collect();
}
if let Some(fast_connection) = cmd_overrides.fast_connection {
- merged_settings.fast_connection = fast_connection;
+ merged_settings.fast_connection = Some(fast_connection);
}
if let Some(auto_rollback) = cmd_overrides.auto_rollback {
- merged_settings.auto_rollback = auto_rollback;
+ merged_settings.auto_rollback = Some(auto_rollback);
+ }
+ if let Some(magic_rollback) = cmd_overrides.magic_rollback {
+ merged_settings.magic_rollback = Some(magic_rollback);
}
Ok(DeployData {