cli: add global --show-secrets option

- it controls echoing passwords input on terminal
- it replaces --show-secrets in 'nmcli connection show', which is deprecated now
- it replaces --show-password in 'nmcli device wifi hotspot', which is deprecated now
This commit is contained in:
Jiří Klimeš
2015-12-04 13:29:42 +01:00
parent 23aff47826
commit 629de4e689
7 changed files with 40 additions and 27 deletions

View File

@@ -999,7 +999,7 @@ nmc_secrets_requested (NMSecretAgentSimple *agent,
nmc_terminal_erase_line ();
success = get_secrets_from_user (request_id, title, msg, nmc->in_editor || nmc->ask,
FALSE, nmc->pwds_hash, secrets);
nmc->show_secrets, nmc->pwds_hash, secrets);
if (success)
nm_secret_agent_simple_response (agent, request_id, secrets);
else {