zsh-workers
 help / color / mirror / code / Atom feed
a63811377b9bdbe93c8dd707a2a4ac4d38b99302 blob 1802 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 
#compdef svcadm

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

	subcmds=( enable disable restart refresh mark delegate clear milestone )

	if [[ $service == "svcadm" ]]; then
		_arguments -C -A "-*" \
			'-v[Print actions verbosely]' \
			'*::command:->subcmd' && return 0

		if (( CURRENT == 1 )); then
			_wanted commands expl 'svcadm subcommand' compadd -a subcmds
			return
		fi
		service="$words[1]"
		curcontext="${curcontext%:*}=$service:"
	fi

	case $service in
	(enable)
		_arguments -A "-*" \
			'-r[Recursively enable dependencies]' \
			'-s[Wait for service to come online]' \
			'-T[Timeout for -s]:seconds:' \
			'-t[State change is temporary]' \
			'*:instance FMRI:_svcs_fmri -i'
		;;

	(disable)
		_arguments -A "-*" \
			'-s[Wait for service to become disabled]' \
			'-T[Timeout for -s]:seconds:' \
			'-t[State change is temporary]' \
			'*:instance FMRI:_svcs_fmri -i'
		;;

	(mark)
		_arguments -A "-*" \
			'-I[Change state immediately]' \
			"-s[Wait for service to reach the new state]" \
			'-T[Timeout for -s]:seconds:' \
			'-t[State change is temporary]' \
			':state:(degraded maintenance)' \
			':instance FMRI:_svcs_fmri -i'
		;;

	(restart|refresh|clear)
		_arguments \
			"-s[Wait for service to $service]" \
			'-T[Timeout for -s]:seconds:' \
			'*:instance FMRI:_svcs_fmri -i'
		;;

	(delegate)
		_arguments -A "-*" \
			'-s[Wait for instances to come online]' \
			'-T[Timeout for -s]:seconds:' \
			':restarter FMRI:_svcs_fmri -r' \
			'*:FMRI:_svcs_fmri -i'
		;;

	(milestone)
		_arguments -A "-*" \
			'-d[Make milestone the default]' \
			'-s[Wait for the transition to the new milestone]' \
			'-T[Timeout for -s]:seconds:' \
			'*:milestone FMRI:_svcs_fmri -m'
		;;

	(*)
		_message "unknown svcadm subcommand: $service"
	esac
debug log:

solving a63811377 ...
found a63811377 in https://inbox.vuxu.org/zsh-workers/32841-1625786855.321208@uVn9.8qCB.5YXS/
found c9826f2eb in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 c9826f2eba77028710f800d748438551817468fe	Completion/Solaris/Command/_svcadm

applying [1/1] https://inbox.vuxu.org/zsh-workers/32841-1625786855.321208@uVn9.8qCB.5YXS/
diff --git a/Completion/Solaris/Command/_svcadm b/Completion/Solaris/Command/_svcadm
index c9826f2eb..a63811377 100644

Checking patch Completion/Solaris/Command/_svcadm...
Applied patch Completion/Solaris/Command/_svcadm cleanly.

index at:
100644 a63811377b9bdbe93c8dd707a2a4ac4d38b99302	Completion/Solaris/Command/_svcadm

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).