summaryrefslogtreecommitdiff
path: root/clients/cli/nmcli-completion
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2014-10-30 15:45:43 +0100
committerJiří Klimeš <jklimes@redhat.com>2014-11-07 11:21:35 +0100
commit0d9c9208026a8c5c14b657bceb477931fd35375d (patch)
tree084650b6126059806a8a4c76bc2b8ee94cbf2f17 /clients/cli/nmcli-completion
parent9e6e6344cb114c5d79eae52594547112d6f800e9 (diff)
downloadNetworkManager-jk/nmcli-agent-command.tar.gz
cli: add 'nmcli agent' commandjk/nmcli-agent-command
Synopsis: nmcli agent { secret | polkit | all } The command runs separate NetworkManager secret agent or session polkit agent, or both. It is useful when - no other secret agent is available (such as GUI nm-applet, gnome-shell, KDE applet) - no other polkit agent is available (such as polkit-gnome-authentication-agent-1, polkit-kde-authentication-agent-1 or lxpolkit)
Diffstat (limited to 'clients/cli/nmcli-completion')
-rw-r--r--clients/cli/nmcli-completion7
1 files changed, 6 insertions, 1 deletions
diff --git a/clients/cli/nmcli-completion b/clients/cli/nmcli-completion
index 1e087f7419..72648d43cb 100644
--- a/clients/cli/nmcli-completion
+++ b/clients/cli/nmcli-completion
@@ -701,7 +701,7 @@ _nmcli()
# (if the current word starts with a dash) or the OBJECT list
# otherwise.
if [[ "${words[0]:0:1}" != '-' ]]; then
- OPTIONS=(help general networking radio connection device)
+ OPTIONS=(help general networking radio connection device agent)
elif [[ "${words[0]:1:1}" == '-' || "${words[0]}" == "-" ]]; then
OPTIONS=("${LONG_OPTIONS[@]/#/--}")
else
@@ -1268,6 +1268,11 @@ _nmcli()
esac
fi
;;
+ a|ag|age|agen|agent)
+ if [[ ${#words[@]} -eq 2 ]]; then
+ _nmcli_compl_COMMAND "$command" secret polkit all
+ fi
+ ;;
esac
return 0