Add 'pivpn clients' command to show list of connected clients

This commit is contained in:
Kaladin Light 2016-12-08 11:43:30 -05:00
parent 43a8a706e2
commit da5facecbc
5 changed files with 34 additions and 4 deletions

View file

@ -4,8 +4,8 @@ _pivpn()
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
dashopts="-a -d -l -r -h -u"
opts="debug add list revoke uninstall help"
dashopts="-a -c -d -l -r -h -u"
opts="debug add clients list revoke uninstall help"
if [ "${#COMP_WORDS[@]}" -eq 2 ]
then
if [[ ${cur} == -* ]] ; then