zsh-workers
 help / color / mirror / code / Atom feed
2d523f287a76b5eaf3fea750aa51572f0b682916 blob 1384 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
#compdef chcon

local ign

(( $#words > 2 )) && ign='!'
_arguments -C -s -S \
  '(-h --no-dereference)--dereference[dereference symlinks]' \
  '(-h --no-dereference --dereference)'{-h,--no-dereference}'[operate on symlinks themselves]' \
  '(1 -u --user -r --role  -l --range -t --type)--reference=[copy security context of specified file]:file:_files' \
  '(1 --reference -u --user)'{-u+,--user=}'[set user in the target security context]: :_selinux_users' \
  '(1 --reference -r --role)'{-r+,--role=}'[set role in the target security context]: :_selinux_roles' \
  '(1 --reference -t --type)'{-t+,--type=}'[set type in the target security context]: :_selinux_types' \
  '(1 --reference -l --range)'{-l+,--range=}'[set range in the target security context]:selinux range' \
  '(--recursive -R)'{--recursive,-R}'[recurse subdirectories]' \
  '(-v --verbose)'{-v,--verbose}'[output a diagnostic for every file processed]' \
  '(-H -L -P)-H[follow symlinks on the command line]' \
  '(-H -L -P)-L[follow all symlinks]' \
  "(-H -L -P)-P[don't follow symlinks (default)]" \
  '!(--preserve-root)--no-preserve-root' \
  "--preserve-root[fail to operate recursively on '/']" \
  '(--reference -u --user -r --role  -l --range -t --type)1:security context:_selinux_contexts' \
  "${ign}--help[display help information]" \
  "${ign}--version[display version information]" \
  '*:file:_files'
debug log:

solving 2d523f287 ...
found 2d523f287 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).