author | Danek Duvall <danek.duvall@oracle.com> |
Thu, 26 Jan 2017 15:26:48 -0800 | |
branch | s11u3-sru |
changeset 7641 | a9fdeecad872 |
parent 3503 | bf3706873eae |
permissions | -rw-r--r-- |
7641 | 1 |
diff --git a/Completion/Solaris/Command/_dladm b/Completion/Solaris/Command/_dladm |
2 |
index cb598de..d6d0aa0 100644 |
|
3 |
--- a/Completion/Solaris/Command/_dladm |
|
4 |
+++ b/Completion/Solaris/Command/_dladm |
|
5 |
@@ -60,15 +60,19 @@ _dladm_iblinks() { |
|
6 |
compadd "$@" - $(_call_program iblinks dladm show-ib -p -o link) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
7 |
} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
8 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
9 |
+_dladm_eoiblinks() { |
7641 | 10 |
+ compadd "$@" - $(_call_program eoiblinks dladm show-eoib -p -o link) |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
11 |
+} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
12 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
13 |
_dladm() { |
7641 | 14 |
local curcontext="$curcontext" state line expl |
15 |
typeset -A opt_args |
|
16 |
local -a subcmds |
|
17 |
local -a linkprops linkprops_general linkprops_nonvlanvnic linkprops_wifi |
|
18 |
- local -a linkprops_ether linkprops_ib linkprops_iptun |
|
19 |
- local -a link_properties link_stats_properties vnic_properties |
|
20 |
- local -a aggr_properties aggr_lacp_properties aggr_ext_properties |
|
21 |
- local -a vlan_properties wifi_properties wifi_connect_properties |
|
22 |
+ local -a linkprops_ether linkprops_ib linkprops_iptun linkprops_aggr |
|
23 |
+ local -a phys_properties link_properties vnic_properties |
|
24 |
+ local -a aggr_properties aggr_lacp_properties aggr_dlmp_properties aggr_ext_properties |
|
25 |
+ local -a vlan_properties wifi_properties wifi_connect_properties eoib_properties |
|
26 |
local -a ether_properties linkprop_properties secobj_properties |
|
27 |
local -a bridge_properties bridge_stats_properties bridge_link_properties |
|
28 |
local -a bridge_link_stats_properties bridge_fwd_properties |
|
29 |
@@ -80,7 +84,7 @@ _dladm() { |
|
30 |
# TODO: some subcommands may take different arguments based on options |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
31 |
|
7641 | 32 |
subcmds=( |
33 |
- help show-ether show-ib |
|
34 |
+ help show-ether |
|
35 |
{add,create,delete,modify,remove,show}-{aggr,bridge} |
|
36 |
{rename,show}-link |
|
37 |
{connect,disconnect,scan,show}-wifi |
|
38 |
@@ -88,7 +92,8 @@ _dladm() { |
|
39 |
{create,delete,modify,show}-vlan |
|
40 |
{delete,show}-phys |
|
41 |
{create,delete,modify,show}-{vnic,iptun} |
|
42 |
- {create,delete,show}-{etherstub,secobj,part,cap} |
|
43 |
+ {create,delete,show}-{etherstub,secobj,part,cap,eoib} |
|
44 |
+ show-ib |
|
45 |
) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
46 |
|
7641 | 47 |
if [[ $service == "dladm" ]]; then |
48 |
@@ -105,10 +110,11 @@ _dladm() { |
|
49 |
fi |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
50 |
|
7641 | 51 |
link_properties=( link zone class mtu state over ) |
52 |
- link_stats_properties=( link ipackets rbytes ierrors opackets obytes oerrors ) |
|
53 |
+ phys_properties=( link media state speed duplex device vfs-avail vfs-inuse flags ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
54 |
|
7641 | 55 |
aggr_properties=( link policy addrpolicy lacpactivity lacptimer mode flags ) |
56 |
aggr_lacp_properties=( link port aggregatable sync coll dist defaulted expired ) |
|
57 |
+ aggr_dlmp_properties=( link port flags state targets xtargets ) |
|
58 |
aggr_ext_properties=( link port speed duplex state address portstate ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
59 |
|
7641 | 60 |
vlan_properties=( link vid over flags ) |
61 |
@@ -118,11 +124,12 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
62 |
|
7641 | 63 |
ether_properties=( link ptype state auto speed-duplex pause rem_fault ) |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
64 |
|
7641 | 65 |
- linkprop_properties=( link property value default possible ) |
66 |
+ linkprop_properties=( link property value effective default possible ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
67 |
|
7641 | 68 |
secobj_properties=( object class ) |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
69 |
|
7641 | 70 |
- vnic_properties=( link over speed macaddr macaddrtype ) |
71 |
+ vnic_properties=( link over speed macaddr macaddrtype macaddrtypes vid |
|
72 |
+ vids evs vport tenant vfs-assigned ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
73 |
|
7641 | 74 |
bridge_properties=( bridge address priority bmaxage bhellotime bfwddelay |
75 |
forceproto tctime tccount tchange desroot rootcost rootport |
|
76 |
@@ -139,23 +146,21 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
77 |
|
7641 | 78 |
part_properties=( link pkey over state flags ) |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
79 |
|
7641 | 80 |
- ib_properties=( link hcaguid portguid port state pkeys ) |
81 |
+ ib_properties=( link hcaguid portguid port state gwname gwport gwid gwflags pkeys ) |
|
82 |
+ eoib_properties=( link gwname gwport gwid speed macaddress over flags ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
83 |
|
7641 | 84 |
linkprops_general=( |
85 |
'autopush:streams modules' |
|
86 |
'cos:value:(0 1 2 3 4 5 6 7)' |
|
87 |
'cpus:processors' |
|
88 |
- 'cpus-effective' |
|
89 |
'etsbw-lcl:percentage:' |
|
90 |
'etsbw-lcl-advice' |
|
91 |
- 'etsbw-lcl-effective' |
|
92 |
- 'etsbw-rmt-effective' |
|
93 |
+ 'etsbw-rmt-advice' |
|
94 |
+ 'iov:value:(auto inherit on off)' |
|
95 |
'lro:value:(off on auto)' |
|
96 |
- 'lro-effective' |
|
97 |
'mac-address:MAC address' |
|
98 |
'maxbw:bandwith' |
|
99 |
'pool:pools' |
|
100 |
- 'pool-effective' |
|
101 |
'priority:priority:(high medium low)' |
|
102 |
'rxringsavail' |
|
103 |
'rxrings:value' |
|
104 |
@@ -171,13 +176,10 @@ _dladm() { |
|
105 |
'stp_mcheck:value:(0 1)' |
|
106 |
'protection:value:(mac-nospoof ip-nospoof dhcp-nospoof restricted)' |
|
107 |
'vsi-mgrid:IPv6 address' |
|
108 |
- 'vsi-mgrid-effective' |
|
109 |
'vsi-mgrid-enc:encoding:(oracle_v1 none)' |
|
110 |
- 'vsi-mgrid-enc-effective' |
|
111 |
'vsi-typeid:value' |
|
112 |
- 'vsi-typeid-effective' |
|
113 |
'vsi-vers:value' |
|
114 |
- 'vsi-vers-effective' |
|
115 |
+ 'vswitching:value:(local remote auto)' |
|
116 |
'zone:zone:_zones' |
|
117 |
) |
|
118 |
linkprops_nonvlanvnic=( |
|
119 |
@@ -185,7 +187,6 @@ _dladm() { |
|
120 |
'learn_decay:value' |
|
121 |
'learn_limit:value' |
|
122 |
'rxfanout:value' |
|
123 |
- 'rxfanout-effective:value' |
|
124 |
'stp:value:(0 1)' |
|
125 |
) |
|
126 |
linkprops_wifi=( |
|
127 |
@@ -213,13 +214,11 @@ _dladm() { |
|
128 |
'en_10fdx_cap:value:(0 1)' |
|
129 |
'en_10hdx_cap:value:(0 1)' |
|
130 |
'flowctrl:value:(auto no rx tx pfc bi)' |
|
131 |
- 'flowctrl-effective' |
|
132 |
'gvrp-timeout:value' |
|
133 |
'mtu:value' |
|
134 |
'ntcs' |
|
135 |
'pfcmap:value' |
|
136 |
- 'pfcmap-lcl-effective' |
|
137 |
- 'pfcmap-rmt-effective' |
|
138 |
+ 'pfcmap-rmt' |
|
139 |
'speed' |
|
140 |
'tagmode:value:(normal vlanonly)' |
|
141 |
'vlan-announce:value:(off gvrp)' |
|
142 |
@@ -231,9 +230,14 @@ _dladm() { |
|
143 |
"hoplimit:value" |
|
144 |
"encaplimit:value" |
|
145 |
) |
|
146 |
+ linkprops_aggr=( |
|
147 |
+ 'probe-enabled:value:(true false)' |
|
148 |
+ 'probe-ip:value:' |
|
149 |
+ 'probe-fdt' |
|
150 |
+ ) |
|
151 |
linkprops=( |
|
152 |
$linkprops_general $linkprops_wifi $linkprops_ether |
|
153 |
- $linkprops_ib $linkprops_iptun |
|
154 |
+ $linkprops_ib $linkprops_iptun $linkprops_aggr |
|
155 |
) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
156 |
|
7641 | 157 |
case $service in |
158 |
@@ -247,12 +251,7 @@ _dladm() { |
|
159 |
'(-p --parseable)'{-p,--parseable}'[parseable output]' \ |
|
160 |
'-Z[display ZONE column in output]' \ |
|
161 |
'-z[zone]:zone:_sequence _zones' \ |
|
162 |
- - set1 \ |
|
163 |
'(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $link_properties' \ |
|
164 |
- - set2 \ |
|
165 |
- '(-s --statistics)'{-s,--statistics}'[display link statistics]' \ |
|
166 |
- '(-i --interval)'{-i,--interval}'[specify an interval]:interval:' \ |
|
167 |
- '(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $link_stats_properties' \ |
|
168 |
':link name:_dladm_links' |
|
169 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
170 |
|
7641 | 171 |
@@ -268,14 +267,15 @@ _dladm() { |
172 |
'-D[show Data Center Bridging information]:featureset:(ets pfc)' \ |
|
173 |
'-H[show hardware resource usage]' \ |
|
174 |
'-L[display location information]' \ |
|
175 |
+ '-l[For ETS DCB, show additional local information]' \ |
|
176 |
+ '-r[For ETS DCB, show additional remote information]' \ |
|
177 |
'(-P --persistent)'{-P,--persistent}'[display persistent link configuration]' \ |
|
178 |
'(-p --parseable)'{-p,--parseable}'[parseable output]' \ |
|
179 |
'-m[display MAC address information]' \ |
|
180 |
+ '-V[Display SR-IOV information]' \ |
|
181 |
'-Z[display ZONE column in output]' \ |
|
182 |
'-z[zone]:zone:_sequence _zones' \ |
|
183 |
- '(-s --statistics)'{-s,--statistics}'[display link statistics]' \ |
|
184 |
- '(-i --interval)'{-i,--interval}'[specify an interval]:interval:' \ |
|
185 |
- '(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" link media state speed duplex device' \ |
|
186 |
+ '(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $phys_properties' \ |
|
187 |
':physical link name:_dladm_devs' |
|
188 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
189 |
|
7641 | 190 |
@@ -299,7 +299,7 @@ _dladm() { |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
191 |
|
7641 | 192 |
(modify-aggr) |
193 |
_arguments -A "-*" \ |
|
194 |
- '(-t --temporary)'{-t,--temporary}'[aggregation should be temporary]' \ |
|
195 |
+ '(-t --temporary)'{-t,--temporary}'[modifications should be temporary]' \ |
|
196 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
197 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_links' \ |
|
198 |
'(-m --mode)'{-m,--mode}'[aggregation mode]:mode:(dlmp trunk)' \ |
|
199 |
@@ -319,7 +319,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
200 |
|
7641 | 201 |
(add-aggr) |
202 |
_arguments -A "-*" \ |
|
203 |
- '(-t --temporary)'{-t,--temporary}'[aggregation should be temporary]' \ |
|
204 |
+ '(-t --temporary)'{-t,--temporary}'[additions should be temporary]' \ |
|
205 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
206 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_links' \ |
|
207 |
':aggregate link name:_dladm_aggrs' |
|
208 |
@@ -327,7 +327,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
209 |
|
7641 | 210 |
(remove-aggr) |
211 |
_arguments -A "-*" \ |
|
212 |
- '(-t --temporary)'{-t,--temporary}'[aggregation should be temporary]' \ |
|
213 |
+ '(-t --temporary)'{-t,--temporary}'[removals should be temporary]' \ |
|
214 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
215 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_aggr_ports' \ |
|
216 |
':aggregate link name:_dladm_aggrs' |
|
217 |
@@ -337,8 +337,6 @@ _dladm() { |
|
218 |
_arguments -A "-*" \ |
|
219 |
'(-P --persistent)'{-P,--persistent}'[display persistent link configuration]' \ |
|
220 |
'(-p --parseable)'{-p,--parseable}'[parseable output]' \ |
|
221 |
- '(-s --statistics)'{-s,--statistics}'[display link statistics]' \ |
|
222 |
- '(-i --interval)'{-i,--interval}'[specify an interval]:interval:' \ |
|
223 |
'-Z[display ZONE column in output]' \ |
|
224 |
'-z[zone]:zone:_sequence _zones' \ |
|
225 |
':aggregate link name:_dladm_links' \ |
|
226 |
@@ -347,6 +345,9 @@ _dladm() { |
|
227 |
- lacp \ |
|
228 |
'(-L --lacp)'{-L,--lacp}'[LACP information]' \ |
|
229 |
'(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $aggr_lacp_properties' \ |
|
230 |
+ - dlmp \ |
|
231 |
+ '-S[Display detailed probe information]' \ |
|
232 |
+ '(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $aggr_dlmp_properties' \ |
|
233 |
- extended \ |
|
234 |
'(-x --extended)'{-x,--extended}'[extended information]' \ |
|
235 |
'(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $aggr_ext_properties' |
|
236 |
@@ -371,7 +372,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
237 |
|
7641 | 238 |
(modify-vlan) |
239 |
_arguments -A "-*" \ |
|
240 |
- '(-t --temporary)'{-t,--temporary}'[VLAN should be temporary]' \ |
|
241 |
+ '(-t --temporary)'{-t,--temporary}'[modifications should be temporary]' \ |
|
242 |
'(-f --force)'{-f,--force}'[force VLAN creation]' \ |
|
243 |
'(-R --root-dir)'{-R,--root-dir}'[root directory]:directory:_path_files -/' \ |
|
244 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_links' \ |
|
245 |
@@ -469,7 +470,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
246 |
|
7641 | 247 |
(create-secobj) |
248 |
_arguments -A "-*" \ |
|
249 |
- '(-t --temporary)'{-t,--temporary}'[creation should be temporary]' \ |
|
250 |
+ '(-t --temporary)'{-t,--temporary}'[object should be temporary]' \ |
|
251 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
252 |
'(-c --class)'{-c,--class}'[class]:class:(wep wpa)' \ |
|
253 |
'(-f --file)'{-f,--file}'[file containing object value]:file:_path_files' \ |
|
254 |
@@ -494,12 +495,17 @@ _dladm() { |
|
255 |
(create-vnic) |
|
256 |
# TODO: MAC address completion could be richer |
|
257 |
_arguments -A "-*" \ |
|
258 |
- '(-t --temporary)'{-t,--temporary}'[creation should be temporary]' \ |
|
259 |
+ '(-t --temporary)'{-t,--temporary}'[VNIC should be temporary]' \ |
|
260 |
+ - nonEVS \ |
|
261 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
262 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_links' \ |
|
263 |
'(-m --mac-address)'{-m,--mac-address}'[MAC address]:address:(factory random auto vrrp)' \ |
|
264 |
'-v[VLAN ID]:id:' \ |
|
265 |
'(-p --prop)'{-p,--prop}'[property values]:value:_values -s , "property" ${(M)linkprops_general\:#*\:*}' \ |
|
266 |
+ ':VNIC name:' \ |
|
267 |
+ - EVS \ |
|
268 |
+ '(-c --connect)'{-c,--connect}'[Elastic Virtual Switch name]:evs name: ' \ |
|
269 |
+ '(-T --tenant)'{-T,--tenant}'[Tenant name]:tenant: ' \ |
|
270 |
':VNIC name:' |
|
271 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
272 |
|
7641 | 273 |
@@ -513,7 +519,7 @@ _dladm() { |
274 |
(modify-vnic) |
|
275 |
# TODO: MAC address completion could be richer |
|
276 |
_arguments -A "-*" \ |
|
277 |
- '(-t --temporary)'{-t,--temporary}'[creation should be temporary]' \ |
|
278 |
+ '(-t --temporary)'{-t,--temporary}'[modifications should be temporary]' \ |
|
279 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
280 |
'(-l --link)'{-l,--link}'[component link]:link:_dladm_links' \ |
|
281 |
'(-m --mac-address)'{-m,--mac-address}'[MAC address]:address:(factory random auto vrrp)' \ |
|
282 |
@@ -531,8 +537,6 @@ _dladm() { |
|
283 |
'(-p --parseable)'{-p,--parseable}'[parseable output]' \ |
|
284 |
'(-o --output)'{-o,--output}'[properties to display]:property:_values -s , "property" $vnic_properties' \ |
|
285 |
'(-l --link)'{-l,--link}'[limit to VNICs on link]:link:_dladm_links' \ |
|
286 |
- '(-s --statistics)'{-s,--statistics}'[display VNIC statistics]' \ |
|
287 |
- '(-i --interval)'{-i,--interval}'[specify an interval]:interval:' \ |
|
288 |
'-Z[display ZONE column in output]' \ |
|
289 |
'-v[display all VLAN information]' \ |
|
290 |
'-z[zone]:zone:_sequence _zones' \ |
|
291 |
@@ -541,7 +545,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
292 |
|
7641 | 293 |
(create-etherstub) |
294 |
_arguments -A "-*" \ |
|
295 |
- '(-t --temporary)'{-t,--temporary}'[creation should be temporary]' \ |
|
296 |
+ '(-t --temporary)'{-t,--temporary}'[etherstub should be temporary]' \ |
|
297 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
298 |
':etherstub name:' |
|
299 |
;; |
|
300 |
@@ -560,16 +564,6 @@ _dladm() { |
|
301 |
':etherstub name:_dladm_etherstubs' |
|
302 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
303 |
|
7641 | 304 |
- (show-usage) |
305 |
- _arguments -A "-*" \ |
|
306 |
- '(-f --file)'{-f,--file}'[read records from file]:file:_path_files' \ |
|
307 |
- '(-F --format)'{-F,--format}'[plotfile format]:plotfile format:(gnuplot)' \ |
|
308 |
- '(-p --plot)'{-p,--plot}'[write plot to file]:' \ |
|
309 |
- '(-e --start)'{-e,--start}'[start time]:date/time (MM/DD/YYYY,hh\:mm\:ss)' \ |
|
310 |
- '(-s --stop)'{-s,--stop}'[stop time]:date/time (MM/DD/YYYY,hh\:mm\:ss)' \ |
|
311 |
- ':link name:_dladm_links' |
|
312 |
- ;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
313 |
- |
7641 | 314 |
(create-bridge) |
315 |
_arguments -A "-*" \ |
|
316 |
'(-P --protect)'{-P,--protect}'[specify a protection method]:protection method:(stp trill)' \ |
|
317 |
@@ -583,7 +577,6 @@ _dladm() { |
|
318 |
':bridge name:' |
|
319 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
320 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
321 |
- |
7641 | 322 |
(modify-bridge) |
323 |
_arguments -A "-*" \ |
|
324 |
'(-P --protect)'{-P,--protect}'[specify a protection method]:protection method:(stp trill)' \ |
|
325 |
@@ -596,14 +589,12 @@ _dladm() { |
|
326 |
':bridge name:_dladm_bridges' |
|
327 |
;; |
|
328 |
||
329 |
- |
|
330 |
(delete-bridge) |
|
331 |
_arguments -A "-*" \ |
|
332 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
333 |
':bridge name:_dladm_bridges' |
|
334 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
335 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
336 |
- |
7641 | 337 |
(add-bridge|remove-bridge) |
338 |
_arguments -A "-*" \ |
|
339 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
340 |
@@ -611,7 +602,6 @@ _dladm() { |
|
341 |
':bridge name:_dladm_bridges' |
|
342 |
;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
343 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
344 |
- |
7641 | 345 |
(show-bridge) |
346 |
# XXX $bridge_stats_properties get added into -o completions for set1 |
|
347 |
# XXX $bridge_link_stats_properties get added into -o completions for set3 |
|
348 |
@@ -640,10 +630,9 @@ _dladm() { |
|
349 |
':bridge name:_dladm_bridges' |
|
350 |
; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
351 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
352 |
- |
7641 | 353 |
(create-iptun) |
354 |
_arguments -A "-*" \ |
|
355 |
- '(-t --temporary)'{-t,--temporary}'[temporary tunnel]' \ |
|
356 |
+ '(-t --temporary)'{-t,--temporary}'[tunnel should be temporary]' \ |
|
357 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
358 |
'(-T --type)'{-T,--type}'[tunnel type]:tunnel type:(ipv4 ipv6 6to4)' \ |
|
359 |
'(-a --address)'{-a,--address}'[endpoint addresses]:address/host:_values -s , "address/host" $tunnel_values' \ |
|
360 |
@@ -652,7 +641,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
361 |
|
7641 | 362 |
(modify-iptun) |
363 |
_arguments -A "-*" \ |
|
364 |
- '(-t --temporary)'{-t,--temporary}'[temporary modification]' \ |
|
365 |
+ '(-t --temporary)'{-t,--temporary}'[modifications should be temporary]' \ |
|
366 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
367 |
'(-a --address)'{-a,--address}'[endpoint addresses]:address/host:_values -s , "address/host" $tunnel_values' \ |
|
368 |
':tunnel name:_dladm_iptuns' |
|
369 |
@@ -660,7 +649,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
370 |
|
7641 | 371 |
(delete-iptun) |
372 |
_arguments -A "-*" \ |
|
373 |
- '(-t --temporary)'{-t,--temporary}'[temporary deletion]' \ |
|
374 |
+ '(-t --temporary)'{-t,--temporary}'[deletion should be temporary]' \ |
|
375 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
376 |
':tunnel name:_dladm_iptuns' |
|
377 |
;; |
|
378 |
@@ -677,7 +666,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
379 |
|
7641 | 380 |
(create-part) |
381 |
_arguments -A "-*" \ |
|
382 |
- '(-t --temporary)'{-t,--temporary}'[temporary partition]' \ |
|
383 |
+ '(-t --temporary)'{-t,--temporary}'[partition should be temporary]' \ |
|
384 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
385 |
'(-f --force)'{-f,--force}'[force partition creation]' \ |
|
386 |
'(-l --link)'{-l,--link}'[IP-over-IB physical link name]:IB link:_dladm_iblinks' \ |
|
387 |
@@ -688,7 +677,7 @@ _dladm() { |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
388 |
|
7641 | 389 |
(delete-part) |
390 |
_arguments -A "-*" \ |
|
391 |
- '(-t --temporary)'{-t,--temporary}'[temporary deletion]' \ |
|
392 |
+ '(-t --temporary)'{-t,--temporary}'[deletion should be temporary]' \ |
|
393 |
'(-R --root)'{-R,--root}'[root directory]:directory:_path_files -/' \ |
|
394 |
':link name:_dladm_parts' |
|
395 |
;; |
|
396 |
@@ -725,6 +714,35 @@ _dladm() { |
|
397 |
':cap link' |
|
398 |
;; |
|
399 |
||
400 |
+ (create-eoib) |
|
401 |
+ _arguments -A "-*" \ |
|
402 |
+ '(-t --temporary)'{-t,--temporary}'[EoIB Link should be temporary]' \ |
|
403 |
+ '(-R --root)'{-R,--root}'[Root directory]:directory:_path_files -/' \ |
|
404 |
+ '(-l --link)'{-l,--link}'[InfiniBand link]:IB link:_dladm_iblinks' \ |
|
405 |
+ '(-g --gateway)'{-g,--gateway}'[Gateway name]:gateway name: ' \ |
|
406 |
+ '-c[Gateway ethernet port]:gateway port: ' \ |
|
407 |
+ ':EoIB link name:' |
|
408 |
+ ;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
409 |
+ |
7641 | 410 |
+ (delete-eoib) |
411 |
+ _arguments -A "-*" \ |
|
412 |
+ '(-t --temporary)'{-t,--temporary}'[Deletion should be temporary]' \ |
|
413 |
+ '(-R --root)'{-R,--root}'[Root directory]:directory:_path_files -/' \ |
|
414 |
+ ':EoIB link name:_dladm_eoiblinks' |
|
415 |
+ ;; |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
416 |
+ |
7641 | 417 |
+ (show-eoib) |
418 |
+ _arguments -A "-*" \ |
|
419 |
+ '(-P --persistent)'{-P,--persistent}'[Display persistent link configuration]' \ |
|
420 |
+ '(-p --parseable)'{-p,--parseable}'[Parseable output]' \ |
|
421 |
+ '(-o --output)'{-o,--output}'[Properties to display]:property:_values -s , "property" $eoib_properties' \ |
|
422 |
+ '(-g --gateway)'{-g,--gateway}'[Gateway name]:gateway name: ' \ |
|
423 |
+ '(-l --link)'{-l,--link}'[InfiniBand link]:IB link:_dladm_iblinks' \ |
|
424 |
+ '-Z[Display ZONE column in output]' \ |
|
425 |
+ '-z[zone]:zonename:_values -s , "zone" $(zoneadm list)' \ |
|
426 |
+ ':EoIB link name:_dladm_eoiblinks' |
|
427 |
+ ;; |
|
428 |
+ |
|
429 |
(*) |
|
430 |
_default |
|
431 |
;; |
|
432 |
diff --git a/Completion/Solaris/Command/_flowadm b/Completion/Solaris/Command/_flowadm |
|
433 |
index e4d682f..3dc5741 100644 |
|
434 |
--- a/Completion/Solaris/Command/_flowadm |
|
435 |
+++ b/Completion/Solaris/Command/_flowadm |
|
436 |
@@ -12,7 +12,7 @@ subcmds=( |
|
437 |
reset-flowprop show-flowprop |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
438 |
) |
7641 | 439 |
tr=( tcp udp sctp icmp icmpv6 ) |
440 |
-props=( maxbw ) |
|
441 |
+props=( maxbw priority hwflow ) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
442 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
443 |
if [[ $service == "flowadm" ]]; then |
7641 | 444 |
_arguments -C -A "-*" \ |
445 |
@@ -33,7 +33,7 @@ case $service in |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
446 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
447 |
("show-flow") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
448 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
449 |
- '-o[specify field to display]:field:(flow link ipaddr proto port dsfield)' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
450 |
+ '-o[specify field to display]:field:(flow link proto laddr lport raddr rport port dsfield pid)' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
451 |
'-p[parsable output]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
452 |
'-P[persistent flow property information]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
453 |
- set1 \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
454 |
--- zsh-5.0.5/Completion/Solaris/Command/_ipadm Wed Nov 27 11:00:18 2013 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
455 |
+++ zsh-5.0.5/Completion/Solaris/Command/_ipadm Fri Mar 28 16:02:55 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
456 |
@@ -1,5 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
457 |
#compdef ipadm |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
458 |
-# Synced with the S11U1 build 19 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
459 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
460 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
461 |
_ipadm_ifs() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
462 |
local -a extra |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
463 |
@@ -122,11 +122,13 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
464 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
465 |
addrobj_properties=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
466 |
"addrobj" "type" "state" "current" "persistent" "addr" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
467 |
- "cid-type" "cid-value" "begin" "expire" "renew" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
468 |
+ "cid-type" "cid-value" "begin" "expire" "renew" "vrrp-router" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
469 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
470 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
471 |
- proto_ipv4_properties=( "hostmodel" "ttl" "forwarding" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
472 |
- proto_ipv6_properties=( "hostmodel" "hoplimit" "forwarding" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
473 |
+ proto_ipv4_properties=( "arp_publish_count" "arp_publish_interval" "hostmodel" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
474 |
+ "ttl" "forwarding" "ndp_unsolicit_count" "ndp_unsolicit_interval" "send_redirects" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
475 |
+ proto_ipv6_properties=( "arp_publish_count" "arp_publish_interval" "hostmodel" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
476 |
+ "hoplimit" "forwarding" "ndp_unsolicit_count" "ndp_unsolicit_interval" "send_redirects" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
477 |
proto_tcp_properties=( "cong_default" "cong_enabled" "ecn" "extra_priv_ports" "max_buf" "recv_buf" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
478 |
"send_buf" "sack" "smallest_anon_port" "largest_anon_port" "smallest_nonpriv_port" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
479 |
proto_udp_properties=( "extra_priv_ports" "max_buf" "recv_buf" "send_buf" "smallest_anon_port" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
480 |
@@ -265,7 +267,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
481 |
case ${opt_args[-T]#-T:} in |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
482 |
("static:"*) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
483 |
local -a addrthingsv4 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
484 |
- addrthingsv4=( "local:address: " "remote:address: ") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
485 |
+ addrthingsv4=( "local:address: " "remote:address: " ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
486 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
487 |
'(-d --down)'{-d,--down}'[Address should be marked down]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
488 |
'(-a --address)'{-a,--address}'[Address specification]:address:_values -s , "address" $addrthingsv4' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
489 |
@@ -281,7 +283,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
490 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
491 |
("addrconf:"*) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
492 |
local -a addrthingsv6 statefulness |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
493 |
- addrthingsv6=( "local:interface id: " "remote:interface id: ") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
494 |
+ addrthingsv6=( "local:interface id: " "remote:interface id: " ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
495 |
statefulness=( "stateful:statefulness:(yes no)" "stateless:statelessness:(yes no)" ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
496 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
497 |
'(-i --interface-id)'{-i,--interface-id}'[Interface ID]:address:_values -s , "interface id" $addrthingsv6' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
498 |
@@ -288,6 +290,16 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
499 |
'(-p --prop)'{-p,--prop}'[Statefulness configuration]:statefulness configuration:_values -s , "statefulness" $statefulness' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
500 |
':address object name:_ipadm_addrobjs_or_ifs' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
501 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
502 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
503 |
+ ("vrrp:"*) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
504 |
+ local -a addrthingsvrrp |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
505 |
+ addrthingsvrrp=( "local:address: " ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
506 |
+ _arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
507 |
+ '(-a --address)'{-a,--address}'[Address specification]:address:_values -s , "address" $addrthingsvrrp' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
508 |
+ '-n[VRRP router name]:router name: ' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
509 |
+ ':address object name:_ipadm_addrobjs_or_ifs' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
510 |
+ ;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
511 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
512 |
(*) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
513 |
_wanted commands expl "address type" compadd static dhcp addrconf |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
514 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
515 |
--- zsh-5.0.5/Completion/Solaris/Command/_netstat Wed Nov 27 11:00:18 2013 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
516 |
+++ zsh-5.0.5/Completion/Solaris/Command/_netstat Fri Mar 28 10:12:57 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
517 |
@@ -1,4 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
518 |
#compdef netstat |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
519 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
520 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
521 |
_netstat() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
522 |
local -a f_rules |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
523 |
@@ -18,6 +19,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
524 |
'-v[verbose]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
525 |
'-f[specify address family]:address family:(inet inet6 unix)' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
526 |
'-P[specify protocol]:protocol:(ip ipv6 icmp icmpv6 igmp udp tcp rawip)' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
527 |
+ '-u[show user, pid, and program owning the network endpoint]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
528 |
- set2 \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
529 |
'-r[show routing table]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
530 |
'-f[filter routing table]:rule:(($f_rules))' \ |
3021
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
531 |
--- zsh-5.0.5/Completion/Solaris/Command/_svcadm Thu Jan 2 14:23:56 2014 |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
532 |
+++ zsh-5.0.5/Completion/Solaris/Command/_svcadm Tue Jan 7 16:11:20 2014 |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
533 |
@@ -23,8 +23,8 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
534 |
(enable) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
535 |
_arguments -A "-*" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
536 |
'-r[Recursively enable dependencies]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
537 |
- '-s[Wait for service to come online]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
538 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
539 |
+ '-s[Synchronous mode: wait for service to come online]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
540 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
541 |
'-t[State change is temporary]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
542 |
'*:instance FMRI:_svcs_fmri -i' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
543 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
544 |
@@ -31,8 +31,8 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
545 |
|
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
546 |
(disable) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
547 |
_arguments -A "-*" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
548 |
- '-s[Wait for service to become disabled]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
549 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
550 |
+ '-s[Synchronous mode: wait for service to become disabled]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
551 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
552 |
'-t[State change is temporary]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
553 |
'*:instance FMRI:_svcs_fmri -i' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
554 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
555 |
@@ -40,8 +40,8 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
556 |
(mark) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
557 |
_arguments -A "-*" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
558 |
'-I[Change state immediately]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
559 |
- "-s[Wait for service to reach the new state]" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
560 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
561 |
+ "-s[Synchronous mode: wait for service to reach the new state]" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
562 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
563 |
'-t[State change is temporary]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
564 |
':state:(degraded maintenance)' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
565 |
':instance FMRI:_svcs_fmri -i' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
566 |
@@ -49,15 +49,15 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
567 |
|
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
568 |
(restart|refresh|clear) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
569 |
_arguments \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
570 |
- "-s[Wait for service to $service]" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
571 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
572 |
+ "-s[Synchronous mode: wait for service to $service]" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
573 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
574 |
'*:instance FMRI:_svcs_fmri -i' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
575 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
576 |
|
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
577 |
(delegate) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
578 |
_arguments -A "-*" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
579 |
- '-s[Wait for instances to come online]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
580 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
581 |
+ '-s[Synchronous mode: wait for instances to come online]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
582 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
583 |
':restarter FMRI:_svcs_fmri -r' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
584 |
'*:FMRI:_svcs_fmri -i' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
585 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
586 |
@@ -65,8 +65,8 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
587 |
(milestone) |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
588 |
_arguments -A "-*" \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
589 |
'-d[Make milestone the default]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
590 |
- '-s[Wait for the transition to the new milestone]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
591 |
- '-T[Timeout for -s]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
592 |
+ '-s[Synchronous mode: wait for the transition to the new milestone]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
593 |
+ '-T[Timeout for synchronous mode]:seconds:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
594 |
'*:milestone FMRI:_svcs_fmri -m' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
595 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
596 |
|
7641 | 597 |
diff --git a/Completion/Solaris/Command/_svcs b/Completion/Solaris/Command/_svcs |
598 |
index c1f01ad..eab561a 100644 |
|
599 |
--- a/Completion/Solaris/Command/_svcs |
|
600 |
+++ b/Completion/Solaris/Command/_svcs |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
601 |
@@ -1,4 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
602 |
#compdef svcs |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
603 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
604 |
|
7641 | 605 |
local -a cols |
606 |
||
607 |
@@ -12,17 +13,18 @@ cols=( |
|
608 |
) |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
609 |
|
7641 | 610 |
_arguments -s \ |
611 |
- '(-l -x -d -D)-a[list all instances]' \ |
|
612 |
- '(-l -x -D -a -R)-d[list dependencies]' \ |
|
613 |
- '(-l -x -d -a -R)-D[list dependents]' \ |
|
614 |
- '(-l -x)-H[suppress header line]' \ |
|
615 |
+ '(-l -L -x -d -D)-a[list all instances]' \ |
|
616 |
+ '(-l -L -x -D -a -R)-d[list dependencies]' \ |
|
617 |
+ '(-l -L -x -d -a -R)-D[list dependents]' \ |
|
618 |
+ '(-l -L -x)-H[suppress header line]' \ |
|
619 |
'(-x -d -D -a -R -s)-l[print detailed status about services and instances]' \ |
|
620 |
- '(-l -x)-o[display specific columns]:column:_values -s , "column" ${^cols/\:/[}\]' \ |
|
621 |
- '(-l -x)-p[list processes]' \ |
|
622 |
- '(-l -x -d -D)-R[list services with the given restarter]:instance FMRI:_svcs_fmri -i' \ |
|
623 |
- '(-l -x)-s[sort by a column]:column:(($cols))' \ |
|
624 |
- '(-l -x)-S[reverse sort by a column]:column:(($cols))' \ |
|
625 |
+ '(-a -d -D -H -l -o -p -R -s -S)-L[print path to service logfile]' \ |
|
626 |
+ '(-l -L -x)-o[display specific columns]:column:_values -s , "column" ${^cols/\:/[}\]' \ |
|
627 |
+ '(-l -L -x)-p[list processes]' \ |
|
628 |
+ '(-l -L -x -d -D)-R[list services with the given restarter]:instance FMRI:_svcs_fmri -i' \ |
|
629 |
+ '(-l -L -x)-s[sort by a column]:column:(($cols))' \ |
|
630 |
+ '(-l -L -x)-S[reverse sort by a column]:column:(($cols))' \ |
|
631 |
'-v[verbose columns]' \ |
|
632 |
'(-l)-x[display explanation for service states]' \ |
|
633 |
- '(-l -x)-\?[print help]' \ |
|
634 |
+ '(-l -L -x)-\?[print help]' \ |
|
635 |
'*:FMRI or pattern:_svcs_fmri -i' |
|
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
636 |
--- zsh-5.0.5/Completion/Solaris/Command/_zlogin Wed Nov 27 11:00:18 2013 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
637 |
+++ zsh-5.0.5/Completion/Solaris/Command/_zlogin Fri Mar 28 10:06:07 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
638 |
@@ -1,5 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
639 |
#compdef zlogin |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
640 |
-# Synced with the Nevada build 162 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
641 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
642 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
643 |
_zlogin() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
644 |
_arguments -s \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
645 |
@@ -6,6 +6,8 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
646 |
'-E[Disable escape character]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
647 |
'-e[Specify escape character]:character:' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
648 |
'-l[Specify username]:username:_users' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
649 |
+ '-T[Enter immutable zone as a "Trusted Path Domain" member]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
650 |
+ '-U[Like -T, but "unsafe"]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
651 |
':zonename:_zones' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
652 |
- set1 \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
653 |
'-C[Connect to zone console]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
654 |
--- zsh-5.0.5/Completion/Solaris/Command/_zoneadm Thu Jan 2 14:23:56 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
655 |
+++ zsh-5.0.5/Completion/Solaris/Command/_zoneadm Sat Mar 29 11:19:44 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
656 |
@@ -1,20 +1,22 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
657 |
#compdef zoneadm |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
658 |
-# Synced with the S11U1 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
659 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
660 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
661 |
_zoneadm_bootargs() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
662 |
# This is a subset of the arguments to kernel(1M) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
663 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
664 |
- '-i[Alternate init]:path:_path_files' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
665 |
'-m[SMF options]:option:_values "SMF option" debug milestone= quiet verbose' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
666 |
- '-s[Boot single user]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
667 |
+ '-s[Boot single user]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
668 |
+ '-L[List available boot environments]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
669 |
+ '-Z[Boot a named environment]:boot environment: ' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
670 |
} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
671 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
672 |
_zoneadm() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
673 |
local context state line expl |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
674 |
typeset -A opt_args |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
675 |
- local -a subcmds fields |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
676 |
- local -a solaris_attach solaris_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
677 |
- local -a solaris10_attach solaris10_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
678 |
+ local -a subcmds subcmds_solariskz fields |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
679 |
+ local -a solaris_attach solaris_clone solaris_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
680 |
+ local -a solariskz_attach solariskz_clone solariskz_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
681 |
+ local -a solaris10_attach solaris10_clone solaris10_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
682 |
local -a extended_create_options extended_destroy_options |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
683 |
local brand brand_args |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
684 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
685 |
@@ -22,11 +24,19 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
686 |
attach boot clone detach halt help install list mark move |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
687 |
ready reboot uninstall verify |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
688 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
689 |
+ subcmds_solariskz=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
690 |
+ savecore suspend |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
691 |
+ ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
692 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
693 |
extended_create_options=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
694 |
+ "cert:certificate:_path_files" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
695 |
+ "cacert:CA certificate:_path_files" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
696 |
+ "force-takeover" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
697 |
"force-zpool-import" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
698 |
"force-zpool-create:ZFS pool: " |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
699 |
"force-zpool-create-all" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
700 |
+ "initialize-hostdata" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
701 |
+ "key:key:_path_files" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
702 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
703 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
704 |
extended_destroy_options=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
705 |
@@ -35,28 +45,44 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
706 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
707 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
708 |
solaris_attach=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
709 |
- '(-d)-a[Path to archive]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
710 |
- '(-a)-d[Path to zonepath]:directory:_path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
711 |
+ '-c[Specify configuration profile]:path:_files -g \*.xml' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
712 |
+ '-U[Update all packages to latest versions]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
713 |
+ '-z[Attach existing zone boot environment]:zone boot environment: ' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
714 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
715 |
+ solaris_clone=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
716 |
+ '-c[Specify configuration profile]:path:_files -g \*.xml' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
717 |
+ ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
718 |
solaris_install=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
719 |
+ '-c[Specify configuration profile]:path:_files -g \*.xml' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
720 |
- set1 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
721 |
- '-c[Path to certificate]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
722 |
- '*-e[Additional package]:package:' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
723 |
- '-k[Path to key]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
724 |
- '-P[Publisher/URI mapping]:publisher:' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
725 |
+ '-m[Specify install (AI) manifest]:path:_files -g \*.xml' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
726 |
- set2 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
727 |
'(-d)-a[Path to archive]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
728 |
- '(-a)-d[Path to installed zone root]:directory:path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
729 |
+ '(-a -z)-d[Path to installed zone root]:directory:path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
730 |
'-p[Preserve system configuration]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
731 |
'-s[Install silently]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
732 |
'-u[Unconfigure after installation]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
733 |
'-v[Verbose]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
734 |
+ '(-d)-z[Name of zone in unified archive]:zone: ' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
735 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
736 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
737 |
+ solariskz_attach=() |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
738 |
+ solariskz_clone=( $solaris_clone ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
739 |
+ solariskz_install=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
740 |
+ '-a(-m)[Specify unified archive]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
741 |
+ '-b[Specify boot media]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
742 |
+ '-c[Specify configuration profile]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
743 |
+ '-m(-a)[Specify install (AI) manifest]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
744 |
+ '-S[Specify root filesystem size]:size: ' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
745 |
+ '-v[Verbose]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
746 |
+ '-z[Name of zone in unified archive]:zone: ' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
747 |
+ ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
748 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
749 |
solaris10_attach=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
750 |
'(-d)-a[Path to archive]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
751 |
'(-a)-d[Path to zonepath]:directory:_path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
752 |
) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
753 |
+ solaris10_clone=() |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
754 |
solaris10_install=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
755 |
'(-d)-a[Path to archive]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
756 |
'(-a)-d[Path to installed zone root]:directory:path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
757 |
@@ -70,9 +96,15 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
758 |
_arguments -C -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
759 |
'-R[Alternate root]:alternate root:_path_files -/' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
760 |
'-u[Zone UUID]:zone UUID: ' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
761 |
- '-z[Zone name]:zone name:_zones' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
762 |
+ '-z[Zone name]:zone name:_zones -t c' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
763 |
'*::command:->subcmd' && return 0 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
764 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
765 |
+ if [[ -n $opt_args[-z] ]]; then |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
766 |
+ brand=${${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]}//-/} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
767 |
+ brand_args=subcmds_${brand} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
768 |
+ subcmds=( ${(P)brand_args} $subcmds ) |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
769 |
+ fi |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
770 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
771 |
if (( CURRENT == 1 )); then |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
772 |
_wanted commands expl "zoneadm subcommand" compadd -a subcmds |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
773 |
return |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
774 |
@@ -85,6 +117,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
775 |
("boot") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
776 |
# Completion of boot arguments after -- is kinda hacky. |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
777 |
_arguments -S -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
778 |
+ '-R[Force new boot instead of resume]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
779 |
'-w[Force writable root]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
780 |
'-W[Boot in transient r/w mode]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
781 |
'*:boot options:_zoneadm_bootargs' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
782 |
@@ -91,16 +124,21 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
783 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
784 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
785 |
("clone") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
786 |
+ if [[ -n $opt_args[-z] ]]; then |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
787 |
+ brand=${${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]}//-/} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
788 |
+ brand_args=${brand}_clone |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
789 |
+ fi |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
790 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
791 |
'-m[Clone mode]:mode:_values "mode" copy' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
792 |
'-s[Source snapshot]:snapshot:_zfs_dataset -t snap' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
793 |
'-x[Extended options]:extended option:_values -w "extended option" $extended_create_options' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
794 |
- ':source zone:_zones' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
795 |
+ ${(P)brand_args} \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
796 |
+ ':source zone:_zones -t i' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
797 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
798 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
799 |
("attach") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
800 |
if [[ -n $opt_args[-z] ]]; then |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
801 |
- brand=${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
802 |
+ brand=${${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]}//-/} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
803 |
brand_args=${brand}_attach |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
804 |
fi |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
805 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
806 |
@@ -116,7 +154,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
807 |
'-n[Dry run]' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
808 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
809 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
810 |
- ("halt"|"ready"|"reboot"|"verify") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
811 |
+ ("halt"|"ready"|"reboot"|"verify"|"suspend") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
812 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
813 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
814 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
815 |
@@ -126,7 +164,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
816 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
817 |
("install") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
818 |
if [[ -n $opt_args[-z] ]]; then |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
819 |
- brand=${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
820 |
+ brand=${${"${(@s,:,)$(zoneadm -z $opt_args[-z] list -p)}"[6]}//-/} |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
821 |
brand_args=${brand}_install |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
822 |
fi |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
823 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
824 |
@@ -152,6 +190,12 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
825 |
':new zone path:_path_files -/' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
826 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
827 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
828 |
+ ("savecore") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
829 |
+ _arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
830 |
+ "-L[Don't pause zone]" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
831 |
+ '-f[Path to dumpfile]:path:_path_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
832 |
+ ;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
833 |
+ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
834 |
("uninstall") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
835 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
836 |
'-F[Force]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
837 |
--- zsh-5.0.5/Completion/Unix/Command/_zfs Thu Jan 2 14:23:56 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
838 |
+++ zsh-5.0.5/Completion/Unix/Command/_zfs Sat Mar 29 11:35:15 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
839 |
@@ -1,5 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
840 |
#compdef zfs |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
841 |
-# Synced with the S11U1 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
842 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
843 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
844 |
_zfs() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
845 |
local context state line expl |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
846 |
@@ -121,7 +121,7 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
847 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
848 |
share_rw_properties=( |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
849 |
"share.desc:description:" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
850 |
- "share.noauto:value:(on off)" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
851 |
+ "share.auto:value:(on off)" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
852 |
"share.path:path:" |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
853 |
$share_nfs_rw_properties |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
854 |
$share_smb_rw_properties |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
855 |
@@ -306,8 +306,8 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
856 |
'-d[Depth]:value:' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
857 |
'-H[Scripting mode]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
858 |
'-p[Display numbers exactly]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
859 |
- '-s[Specify sources]:source:_values -s , "source" local default inherited temporary none' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
860 |
- '-o[Specify fields]:field:_values -s , "field" name property value source' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
861 |
+ '-s[Specify sources]:source:_values -s , "source" local default inherited received temporary none' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
862 |
+ '-o[Specify fields]:field:_values -s , "field" name property received value source' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
863 |
':property:_values -s , "property" $ro_properties $rw_propnames all' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
864 |
'*:filesystem/volume/snapshot:_zfs_dataset' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
865 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
866 |
@@ -381,11 +381,13 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
867 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
868 |
("send") |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
869 |
_arguments -A "-*" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
870 |
- '-b' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
871 |
+ '-b[Send only received property values]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
872 |
'-i[Generate an incremental stream]:snapshot:_zfs_dataset -t snap' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
873 |
'-D[Perform dedup processing]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
874 |
+ "-n[Don't send the stream]" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
875 |
'-p[Send properties]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
876 |
- '-v[Verbose]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
877 |
+ '(-v)-s[Specifies information to be sent to stderr]:token:(streamsize)' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
878 |
+ '(-s)-v[Verbose]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
879 |
- set1 \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
880 |
'-I[Generate an incremental stream with intermediary snapshots]:snapshot:_zfs_dataset -t snap' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
881 |
'-R[Generate a replication stream package]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
882 |
--- zsh-5.0.5/Completion/Unix/Command/_zpool Thu Jan 2 14:23:56 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
883 |
+++ zsh-5.0.5/Completion/Unix/Command/_zpool Fri Mar 28 13:56:56 2014 |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
884 |
@@ -1,5 +1,5 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
885 |
#compdef zpool |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
886 |
-# Synced with the S11U1 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
887 |
+# Synced with the S11U2 build 34 man page |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
888 |
|
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
889 |
_zpool() { |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
890 |
local context state line expl |
3021
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
891 |
@@ -105,7 +105,7 @@ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
892 |
':command/property:($subcmds ${fields%%\[*} properties)' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
893 |
- set2 \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
894 |
'-l[Display property information]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
895 |
- ': :(properties)' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
896 |
+ ':help topics:(properties)' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
897 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
898 |
|
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
899 |
(clear) |
3046
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
900 |
@@ -126,8 +126,10 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
901 |
'-f[Force use of in-use devices]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
902 |
'-l[Display configuration in /dev/chassis location form]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
903 |
'-n[Display configuration without creating pool]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
904 |
+ "-N[Create pool but don't mount or share]" \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
905 |
'-R[Use alternate root]:alternate root:_files -/' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
906 |
'-m[Set mountpoint for root dataset]:mountpoint:' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
907 |
+ '-t[Use a temporary pool name]:pool name: ' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
908 |
':pool name:' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
909 |
'*:virtual device:_files' |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
910 |
;; |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
911 |
@@ -237,11 +239,11 @@ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
912 |
'-n[With -F; do not perform input]' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
913 |
'-R[Alternate root]:alternate root:_files -/' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
914 |
'-o[Set pool or dataset property]:property:_values -s , "property" $create_properties_dataset $rw_props' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
915 |
+ '-t[Use a temporary pool name]:pool name: ' \ |
1e256e706b72
18037988 zsh completion functions need updating to match 11.2
Danek Duvall <danek.duvall@oracle.com>
parents:
3021
diff
changeset
|
916 |
- set1 \ |
3021
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
917 |
'*:pool name or id:_zfs_pool' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
918 |
'::new pool name:' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
919 |
- set2 \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
920 |
- '-N[Do not mount any filesystems]' \ |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
921 |
'-a[All pools]' |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
922 |
;; |
b9308977c65b
18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
923 |