zsh-workers
 help / color / mirror / code / Atom feed
9b4bedec63054641543c08bf7282b09e57cf4843 blob 921 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#compdef gpasswd
local curcontext=$curcontext state state_descr line
typeset -A opt_args

_arguments -C -w -s \
  '(-a --add -d --delete)'{-a,--add}'[add user to group]: : _users' \
  '(-d --delete -a --add)'{-d,--delete}'[remove user from group]: : _users' \
  '(-h --help)'{-h,--help}'[display help]' \
  '(-Q --root)'{-Q,--root}'[directory to chroot into]: : _files -/' \
  '(-r --remove-password)'{-r,--remove-password}'[remove the group password]' \
  '(-R --restrict)'{-R,--restrict}'[restrict access to GROUP to its members]' \
  '(-M --members -A --administrators)'{-M,--members}'[set the list of members of GROUP]: :->users' \
  '(-A --administrators -M --members)'{-A,--administrators}'[set the list of admins for GROUP]: :->users' \
  '1: : _groups'

if [[ $state == users ]]; then
  local -a ignore
  compset -P '*,'; compset -S ',*'
  ignore=( ${(s:,:)IPREFIX} ${(s:,:)ISUFFIX} )
  _users -F ignore -qS ,
fi
debug log:

solving 9b4bede ...
found 9b4bede in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).