summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-29 20:36:16 +0100
committerThomas Haller <thaller@redhat.com>2014-10-29 20:36:16 +0100
commitd2803efaa40e03af84243e6cdf3dbcf0255654a9 (patch)
treec48e4d7f59f812c678c1597043444dc99875dbed
parent500e3adea53d49162e088e64aa59386e8772221c (diff)
downloadNetworkManager-jk/cli-show-secrets.tar.gz
fixup! cli: add '--show-secrets' option for 'nmcli connection show'jk/cli-show-secrets
-rw-r--r--clients/cli/nmcli-completion7
1 files changed, 5 insertions, 2 deletions
diff --git a/clients/cli/nmcli-completion b/clients/cli/nmcli-completion
index e6dc5b5d2d..ef27656e10 100644
--- a/clients/cli/nmcli-completion
+++ b/clients/cli/nmcli-completion
@@ -170,6 +170,9 @@ _nmcli_compl_OPTIONS()
ask)
_nmcli_array_delete_at words 0
;;
+ show-secrets)
+ _nmcli_array_delete_at words 0
+ ;;
active)
_nmcli_array_delete_at words 0
;;
@@ -755,11 +758,11 @@ _nmcli()
case "$command" in
s|sh|sho|show)
if [[ ${#words[@]} -eq 3 ]]; then
- _nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "id\nuuid\npath\napath\n%s" "$(_nmcli_con_show NAME)")" active
+ _nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "id\nuuid\npath\napath\n%s" "$(_nmcli_con_show NAME)")" active show-secrets
elif [[ ${#words[@]} -gt 3 ]]; then
_nmcli_array_delete_at words 0 1
- LONG_OPTIONS=(help active)
+ LONG_OPTIONS=(help active show-secrets)
HELP_ONLY_AS_FIRST=1
_nmcli_compl_OPTIONS
i=$?