diff options
author | Nick Hassan | 2024-02-03 15:12:36 +1030 |
---|---|---|
committer | Nick Hassan | 2024-02-16 23:21:25 +1030 |
commit | 5f694ef481610e8c4c77bb963b49e2d3b0d4db3c (patch) | |
tree | 57e0fed6d50a149c6d5c808f671495191977d80d /src/lib.rs | |
parent | 1776009f1f3fb2b5d236b84d9815f2edee463a9b (diff) |
add support for entering password for sudo
Diffstat (limited to '')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -165,6 +165,7 @@ pub struct CmdOverrides { pub confirm_timeout: Option<u16>, pub activation_timeout: Option<u16>, pub sudo: Option<String>, + pub interactive_sudo: Option<bool>, pub dry_activate: bool, pub remote_build: bool, } @@ -334,6 +335,7 @@ pub struct DeployDefs { pub ssh_user: String, pub profile_user: String, pub sudo: Option<String>, + pub sudo_password: Option<String>, } enum ProfileInfo { ProfilePath { @@ -369,6 +371,7 @@ impl<'a> DeployData<'a> { ssh_user, profile_user, sudo, + sudo_password: None, }) } @@ -448,6 +451,9 @@ pub fn make_deploy_data<'a, 's>( if let Some(activation_timeout) = cmd_overrides.activation_timeout { merged_settings.activation_timeout = Some(activation_timeout); } + if let Some(interactive_sudo) = cmd_overrides.interactive_sudo { + merged_settings.interactive_sudo = Some(interactive_sudo); + } DeployData { node_name, |