zsh-workers
 help / color / mirror / code / Atom feed
b9c7f2489cdbb3a90a741738e3b762e4792d5977 blob 819 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
25
26
27
28
29
30
 
#compdef yast2 yast

local curcontext="$curcontext" state line
typeset -A opt_args

if [[ -z "$_yast2_modules" ]]; then 
	for i in $(/sbin/yast2 --list | grep -v "Available.*modules"); do
		_yast2_modules=($_yast2_modules $i)
	done
fi

_arguments -s \
  '(--list)-l[list all available modules]' '(-l)--list' \
  '(--help)-h[help]' '(-h)--help'\
  \
 {'(--geometry)-g[default window size (qt only)]','(-g)--geometry'}':geometry:(800x600+0+0)' \
  '(--style)-s[widget style (qt only)]' '(-s)--style' \
  \
 {'(--install)-i[install rpm package]','(-i)--install'}':filename:_files' \
  \
 '--noborder[no window manager border for main window]' '--noborder' \
 '--fullscreen[use full screen]' '--fullscreen' \
  \
  ':module:->module' && return 0

case $state in
	module) compadd $_yast2_modules; _files -g "*.ycp";;
esac


debug log:

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