mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08:00
Aws s3 connection parameters extension (#89)
* Aws s3 connection parameters extension * Changed 'save password?' popup to 'change secrets?' * missing docs
This commit is contained in:
@@ -227,7 +227,9 @@ fn parse_args(args: Args) -> Result<RunOpts, String> {
|
||||
fn read_password(run_opts: &mut RunOpts) -> Result<(), String> {
|
||||
// Initialize client if necessary
|
||||
if let Some(remote) = run_opts.remote.as_mut() {
|
||||
// Ask password for generic params
|
||||
if let Some(mut params) = remote.params.mut_generic_params() {
|
||||
// Ask password only if generic protocol params
|
||||
if params.password.is_none() {
|
||||
// Ask password if unspecified
|
||||
params.password = match rpassword::read_password_from_tty(Some("Password: ")) {
|
||||
|
||||
Reference in New Issue
Block a user