19
21
_arguments -s -A "-*" \
20
22
'*::subcmd:->subcmd' \
21
'(--uid)-u[The uid to run as.]:uid to run as:_files' \
22
'(-u)--uid=[The uid to run as.]:uid to run as:_files' \
23
'(--append)-a[An existing .tap file to append the plugin to, rather than creating a new one.]:tap file to append to:_files -g "*.tap"' \
24
'(-a)--append=[An existing .tap file to append the plugin to, rather than creating a new one.]:tap file to append to:_files -g "*.tap"' \
23
25
'(--appname)-n[The process name to use for this application.]:appname:_files' \
24
26
'(-n)--appname=[The process name to use for this application.]:appname:_files' \
27
'(--debug)-d[Show debug information for plugin loading]' \
28
'(-d)--debug[Show debug information for plugin loading]' \
25
29
"(--encrypted)-e[Encrypt file before writing (will make the extension of the resultant file begin with 'e')]" \
26
30
"(-e)--encrypted[Encrypt file before writing (will make the extension of the resultant file begin with 'e')]" \
27
31
'(--gid)-g[The gid to run as.]:gid to run as:_files' \
28
32
'(-g)--gid=[The gid to run as.]:gid to run as:_files' \
29
'--version[version]' \
30
'(--debug)-d[Show debug information for plugin loading]' \
31
'(-d)--debug[Show debug information for plugin loading]' \
33
'(--help)-h[Display this message]' \
34
'(-h)--help[Display this message]' \
32
35
'(--progress)-p[Show progress information for plugin loading]' \
33
36
'(-p)--progress[Show progress information for plugin loading]' \
34
37
"(--type)-t[The output format to use; this can be 'pickle', 'xml', or 'source'.]:output format:(pickle xml source)" \
35
38
"(-t)--type=[The output format to use; this can be 'pickle', 'xml', or 'source'.]:output format:(pickle xml source)" \
36
'(--append)-a[An existing .tap file to append the plugin to, rather than creating a new one.]:tap file to append to:_files -g "*.tap"' \
37
'(-a)--append=[An existing .tap file to append the plugin to, rather than creating a new one.]:tap file to append to:_files -g "*.tap"' \
38
'(--help)-h[Display this message]' \
39
'(-h)--help[Display this message]' \
39
'(--uid)-u[The uid to run as.]:uid to run as:_files' \
40
'(-u)--uid=[The uid to run as.]:uid to run as:_files' \
41
'--version[version]' \
41
43
if (( CURRENT == 1 )); then
42
_describe "tap to build" _mktap_subcmds && ret=0
44
_describe "tap to build" _zsh_subcmds_array && ret=0
44
46
(( ret )) || return 0
46
48
service="$words[1]"
52
_arguments -s -A "-*" \
53
"--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'foo.ext']" \
54
"(--certificate)-c[SSL certificate to use for HTTPS.]:certificate:_files -g '*.pem'" \
55
"(-c)--certificate=[SSL certificate to use for HTTPS.]:certificate:_files -g '*.pem'" \
56
'--class=[A class that will be used to serve the root resource. Must implement twisted.web2.iweb.IResource and take no arguments.]:class:_files' \
57
'--dav=[A path that will be used to serve the root resource as a DAV Collection.]:dav:_files' \
58
'--help[Display this help and exit.]' \
59
'--https=[Port to listen on for Secure HTTP.]:https:_files' \
60
'--ignore-ext=[Specify an extension to ignore. These will be processed in order.]:ignore-ext:_files' \
61
'(--index)-i[Add the name of a file used to check for directory indexes.]:index:_files' \
62
'(-i)--index=[Add the name of a file used to check for directory indexes.]:index:_files' \
63
'(--logfile)-l[Common Access Logging Format file to write to if unspecified access log information will be written to the standard twisted log file.]:logfile:_files' \
64
'(-l)--logfile=[Common Access Logging Format file to write to if unspecified access log information will be written to the standard twisted log file.]:logfile:_files' \
65
"--mimetype=[Mapping from file extension to MIME Type in the form of 'ext=type'.]:mimetype:_files" \
66
'--path=[A path that will be used to serve the root resource as a raw file]:path:_files' \
67
'(--port)-p[Port to start the server on.]:port:_files' \
68
'(-p)--port=[Port to start the server on.]:port:_files' \
69
"(--privkey)-k[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
70
"(-k)--privkey=[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
71
"--processor=[\`ext=class' where \`class' is added as a Processor for files ending]:processor:_files" \
72
'--version[version]' \
73
'--vhost-class=[Specify a virtual host in the form of domain=class,]:vhost-class:_files' \
74
'--vhost-dav=[Specify a virtual host in the form of domain=path,]:vhost-dav:_files' \
75
'--vhost-path=[Specify a directory to use for automatic named virtual hosts.]:vhost-path:_files' \
76
'--vhost-static=[Specify a virtual host in the form of domain=path to be served as]:vhost-static:_files' \
50
80
_arguments -s -A "-*" \
81
'--help[Display this help and exit.]' \
51
82
'--password-file=[username:password-style credentials database]:password-file:_files' \
52
'--help[Display this help and exit.]' \
53
'--userAnonymous=[Name of the anonymous user.]:userAnonymous:_files' \
54
'--version[version]' \
83
'(--port)-p[set the port number]:port:_files' \
84
'(-p)--port=[set the port number]:port:_files' \
55
85
'(--root)-r[define the root of the ftp-site.]:root:_files' \
56
86
'(-r)--root=[define the root of the ftp-site.]:root:_files' \
57
'(--port)-p[set the port number]:port:_files' \
58
'(-p)--port=[set the port number]:port:_files' \
87
'--userAnonymous=[Name of the anonymous user.]:userAnonymous:_files' \
88
'--version[version]' \
62
92
_arguments -s -A "-*" \
63
'(--username)-u[set the login username]:username:_users' \
64
'(-u)--username=[set the login username]:username:_users' \
93
'--help[Display this help and exit.]' \
65
94
'(--password)-w[set the password]:password:_files' \
66
95
'(-w)--password=[set the password]:password:_files' \
67
96
'(--port)-p[port to listen on]:port:_files' \
68
97
'(-p)--port=[port to listen on]:port:_files' \
98
'(--username)-u[set the login username]:username:_users' \
99
'(-u)--username=[set the login username]:username:_users' \
69
100
'--version[version]' \
70
'--help[Display this help and exit.]' \
74
104
_arguments -s -A "-*" \
105
'--help[Display this help and exit.]' \
75
106
'(--interface)-i[local interface to which we listen]:interface:_files' \
76
107
'(-i)--interface=[local interface to which we listen]:interface:_files' \
77
'--version[version]' \
78
'--help[Display this help and exit.]' \
79
'(--port)-p[Port on which to listen]:port:_files' \
80
'(-p)--port=[Port on which to listen]:port:_files' \
81
108
"(--log)-l[file to log connection data to]:log:_files -g '*.log'" \
82
109
"(-l)--log=[file to log connection data to]:log:_files -g '*.log'" \
110
'(--port)-p[Port on which to listen]:port:_files' \
111
'(-p)--port=[Port on which to listen]:port:_files' \
112
'--version[version]' \
86
116
_arguments -s -A "-*" \
87
117
'--help[Display this help and exit.]' \
88
'--version[version]' \
89
'(--user)-u[Name of user to allow to log in]:user:_users' \
90
'(-u)--user=[Name of user to allow to log in]:user:_users' \
91
118
"(--password)-w[Required. '-' will prompt or read a password from stdin.]:password:_files" \
92
119
"(-w)--password=[Required. '-' will prompt or read a password from stdin.]:password:_files" \
93
120
'(--port)-p[Port to listen on]:port:_files' \
94
121
'(-p)--port=[Port to listen on]:port:_files' \
95
122
'(--tracebacks)-T[Allow tracebacks to be sent over the network]' \
96
123
'(-T)--tracebacks[Allow tracebacks to be sent over the network]' \
124
'(--user)-u[Name of user to allow to log in]:user:_users' \
125
'(-u)--user=[Name of user to allow to log in]:user:_users' \
126
'--version[version]' \
100
130
_arguments -s -A "-*" \
131
'(--dest_port)-d[Set the destination port.]:dest_port:_files' \
132
'(-d)--dest_port=[Set the destination port.]:dest_port:_files' \
133
'--help[Display this help and exit.]' \
101
134
'(--host)-h[Set the host.]:host:_hosts' \
102
135
'(-h)--host=[Set the host.]:host:_hosts' \
103
'--version[version]' \
104
'--help[Display this help and exit.]' \
105
136
'(--port)-p[Set the port number.]:port:_files' \
106
137
'(-p)--port=[Set the port number.]:port:_files' \
107
'(--dest_port)-d[Set the destination port.]:dest_port:_files' \
108
'(-d)--dest_port=[Set the destination port.]:dest_port:_files' \
138
'--version[version]' \
112
142
_arguments -s -A "-*" \
113
'--help[Display this help and exit.]' \
114
'--resource-script=[An .rpy file to be used as the root resource of the webserver.]:resource-script:_files' \
115
'(--static)-s[Same as --path, this is deprecated and will be removed in a]:static:_files' \
116
'(-s)--static=[Same as --path, this is deprecated and will be removed in a]:static:_files' \
117
'(--user)-u[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
118
'(-u)--user[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
143
"--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'foo.ext']" \
144
"(--certificate)-c[SSL certificate to use for HTTPS. ]:certificate:_files -g '*.pem'" \
145
"(-c)--certificate=[SSL certificate to use for HTTPS. ]:certificate:_files -g '*.pem'" \
146
'--class=[Create a Resource subclass with a zero-argument constructor.]:class:_files' \
119
147
'--flashconduit=[Start a flashconduit on the specified port.]:flashconduit:_files' \
120
'--path=[<path> is either a specific file or a directory to]:path:_files' \
148
'--help[Display this help and exit.]' \
149
'--https=[Port to listen on for Secure HTTP.]:https:_files' \
150
'--ignore-ext=[Specify an extension to ignore. These will be processed in order.]:ignore-ext:_files' \
151
'(--index)-i[Add the name of a file used to check for directory indexes.]:index:_files' \
152
'(-i)--index=[Add the name of a file used to check for directory indexes.]:index:_files' \
121
153
"(--logfile)-l[Path to web CLF (Combined Log Format) log file.]:logfile:_files -g '*.log'" \
122
154
"(-l)--logfile=[Path to web CLF (Combined Log Format) log file.]:logfile:_files -g '*.log'" \
123
'--class=[Create a Resource subclass with a zero-argument constructor.]:class:_files' \
124
'--ignore-ext=[Specify an extension to ignore. These will be processed in order.]:ignore-ext:_files' \
125
"(--privkey)-k[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
126
"(-k)--privkey=[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
127
"--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'foo.ext']" \
128
'(--index)-i[Add the name of a file used to check for directory indexes.]:index:_files' \
129
'(-i)--index=[Add the name of a file used to check for directory indexes.]:index:_files' \
130
"(--certificate)-c[SSL certificate to use for HTTPS. ]:certificate:_files -g '*.pem'" \
131
"(-c)--certificate=[SSL certificate to use for HTTPS. ]:certificate:_files -g '*.pem'" \
155
'(--mime-type)-m[Specify the default mime-type for static files.]:mime-type:_files' \
156
'(-m)--mime-type=[Specify the default mime-type for static files.]:mime-type:_files' \
132
157
'(--notracebacks)-n[Display tracebacks in broken web pages. Displaying tracebacks to users may be security risk!]' \
133
158
'(-n)--notracebacks[Display tracebacks in broken web pages. Displaying tracebacks to users may be security risk!]' \
134
'(--mime-type)-m[Specify the default mime-type for static files.]:mime-type:_files' \
135
'(-m)--mime-type=[Specify the default mime-type for static files.]:mime-type:_files' \
136
'(--port)-p[Port to start the server on.]:port:_files' \
137
'(-p)--port=[Port to start the server on.]:port:_files' \
159
'--path=[<path> is either a specific file or a directory to]:path:_files' \
138
160
'--personal[Instead of generating a webserver, generate a ResourcePublisher which listens on ~/.twistd-web-pb]' \
161
'(--port)-p[Port to start the server on.]:port:_files' \
162
'(-p)--port=[Port to start the server on.]:port:_files' \
163
"(--privkey)-k[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
164
"(-k)--privkey=[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
165
"--processor=[\`ext=class' where \`class' is added as a Processor for files ending]:processor:_files" \
166
'--resource-script=[An .rpy file to be used as the root resource of the webserver.]:resource-script:_files' \
167
'(--static)-s[Same as --path, this is deprecated and will be removed in a]:static:_files' \
168
'(-s)--static=[Same as --path, this is deprecated and will be removed in a]:static:_files' \
169
'(--user)-u[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
170
'(-u)--user[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
139
171
'--version[version]' \
140
'--https=[Port to listen on for Secure HTTP.]:https:_files' \
141
"--processor=[\`ext=class' where \`class' is added as a Processor for files ending]:processor:_files" \
145
175
_arguments -s -A "-*" \
176
"(--file)-f[Service configuration file]:file:_files -g '*.conf'" \
177
"(-f)--file=[Service configuration file]:file:_files -g '*.conf'" \
178
'--help[Display this help and exit.]' \
146
179
"(--nointernal)-i[Don't run internal services]" \
147
180
"(-i)--nointernal[Don't run internal services]" \
148
181
'(--rpc)-r[RPC procedure table file]:rpc:_files' \
149
182
'(-r)--rpc=[RPC procedure table file]:rpc:_files' \
150
183
'--version[version]' \
151
'--help[Display this help and exit.]' \
152
"(--file)-f[Service configuration file]:file:_files -g '*.conf'" \
153
"(-f)--file=[Service configuration file]:file:_files -g '*.conf'" \
157
187
_arguments -s -A "-*" \
158
'--group=[The name of a newsgroup to carry.]:group:_files' \
159
'--help[Display this help and exit.]' \
160
'--server=[The address of a Usenet server to pass messages to and receive messages from.]:server:_files' \
161
'--moderator=[The email of the moderator for the most recently passed group.]:moderator:_files' \
162
188
'(--datadir)-d[Root data storage path]:datadir:_dirs' \
163
189
'(-d)--datadir=[Root data storage path]:datadir:_dirs' \
190
'--group=[The name of a newsgroup to carry.]:group:_files' \
191
'--help[Display this help and exit.]' \
192
'(--interface)-i[Interface to which to bind]:interface:_files' \
193
'(-i)--interface=[Interface to which to bind]:interface:_files' \
164
194
'(--mailhost)-m[Host of SMTP server to use]:mailhost:_hosts' \
165
195
'(-m)--mailhost=[Host of SMTP server to use]:mailhost:_hosts' \
166
'--version[version]' \
167
'(--interface)-i[Interface to which to bind]:interface:_files' \
168
'(-i)--interface=[Interface to which to bind]:interface:_files' \
196
'--moderator=[The email of the moderator for the most recently passed group.]:moderator:_files' \
169
197
'(--port)-p[Listen port]:port:_files' \
170
198
'(-p)--port=[Listen port]:port:_files' \
199
'--server=[The address of a Usenet server to pass messages to and receive messages from.]:server:_files' \
171
200
'--subscription=[A newsgroup to list as a recommended subscription.]:subscription:_files' \
201
'--version[version]' \
175
205
_arguments -s -A "-*" \
176
206
'--group=[Specify a group which should exist]:group:_files' \
177
207
'--help[Display this help and exit.]' \
178
'--passwd=[Name of a passwd-style password file. (REQUIRED)]:passwd:_files' \
179
208
'--hostname=[Name of this server; purely an informative]:hostname:_files' \
180
209
'--irc-port=[strports description of the port to bind for the irc server]:irc-port:_files' \
210
'--passwd=[Name of a passwd-style password file. (REQUIRED)]:passwd:_files' \
181
211
'--pb-port=[strports description of the port to bind for the pb server]:pb-port:_files' \
182
212
'--version[version]' \
186
216
_arguments -s -A "-*" \
187
'--version[version]' \
217
'--help[Display this help and exit.]' \
188
218
'(--port)-p[port]:port:_files' \
189
219
'(-p)--port=[port]:port:_files' \
190
'--help[Display this help and exit.]' \
220
'--version[version]' \
194
224
_arguments -s -A "-*" \
195
'(--verbose)-v[Log verbosely]' \
196
'(-v)--verbose[Log verbosely]' \
197
'--resolv-conf=[Override location of resolv.conf (implies --recursive)]:resolv-conf:_files' \
225
'--bindzone=[Specify the filename of a BIND9 syntax zone definition]:bindzone:_files' \
226
'(--cache)-c[Enable record caching]' \
227
'(-c)--cache[Enable record caching]' \
228
'--help[Display this help and exit.]' \
229
'--hosts-file=[Perform lookups with a hosts file]:hosts-file:_files' \
198
230
'(--interface)-i[The interface to which to bind]:interface:_files' \
199
231
'(-i)--interface=[The interface to which to bind]:interface:_files' \
232
'(--port)-p[The port on which to listen]:port:_files' \
233
'(-p)--port=[The port on which to listen]:port:_files' \
200
234
'--pyzone=[Specify the filename of a Python syntax zone definition]:pyzone:_files' \
201
'--secondary=[Act as secondary for the specified domain, performing]:secondary:_files' \
202
235
'(--recursive)-r[Perform recursive lookups]' \
203
236
'(-r)--recursive[Perform recursive lookups]' \
204
'(--cache)-c[Enable record caching]' \
205
'(-c)--cache[Enable record caching]' \
206
'--help[Display this help and exit.]' \
207
'(--port)-p[The port on which to listen]:port:_files' \
208
'(-p)--port=[The port on which to listen]:port:_files' \
237
'--resolv-conf=[Override location of resolv.conf (implies --recursive)]:resolv-conf:_files' \
238
'--secondary=[Act as secondary for the specified domain, performing]:secondary:_files' \
239
'(--verbose)-v[Log verbosely]' \
240
'(-v)--verbose[Log verbosely]' \
209
241
'--version[version]' \
210
'--bindzone=[Specify the filename of a BIND9 syntax zone definition]:bindzone:_files' \
211
'--hosts-file=[Perform lookups with a hosts file]:hosts-file:_files' \
215
245
_arguments -s -A "-*" \
216
'--help[Display this help and exit.]' \
217
"(--relay)-R[Relay messages according to their envelope 'To', using the givenpath as a queue directory.]:relay:_files" \
218
"(-R)--relay=[Relay messages according to their envelope 'To', using the givenpath as a queue directory.]:relay:_files" \
219
'(--pop3s)-S[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_files' \
220
'(-S)--pop3s=[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_files' \
221
'(--smtp)-s[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
222
'(-s)--smtp=[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
223
'(--maildirdbmdomain)-d[generate an SMTP/POP3 virtual domain which saves to "path"]:maildirdbmdomain:_files' \
224
'(-d)--maildirdbmdomain=[generate an SMTP/POP3 virtual domain which saves to "path"]:maildirdbmdomain:_files' \
225
'(--pop3)-p[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
226
'(-p)--pop3=[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
227
'(--user)-u[add a user/password to the last specified domains]:user:_files' \
228
'(-u)--user=[add a user/password to the last specified domains]:user:_files' \
246
'(--aliases)-A[Specify an aliases(5) file to use for this domain]:aliases:_files' \
247
'(-A)--aliases=[Specify an aliases(5) file to use for this domain]:aliases:_files' \
229
248
'(--bounce-to-postmaster)-b[undelivered mails are sent to the postmaster]' \
230
249
'(-b)--bounce-to-postmaster[undelivered mails are sent to the postmaster]' \
231
'(--aliases)-A[Specify an aliases(5) file to use for this domain]:aliases:_files' \
232
'(-A)--aliases=[Specify an aliases(5) file to use for this domain]:aliases:_files' \
233
250
'(--certificate)-c[Certificate file to use for SSL connections]:certificate:_files' \
234
251
'(-c)--certificate=[Certificate file to use for SSL connections]:certificate:_files' \
235
252
'(--default)-D[Make the most recently specified domain the default domain.]' \
236
253
'(-D)--default[Make the most recently specified domain the default domain.]' \
237
'(--hostname)-H[The hostname by which to identify this server.]:hostname:_hosts' \
238
'(-H)--hostname=[The hostname by which to identify this server.]:hostname:_hosts' \
239
254
'--disable-anonymous[Disallow non-authenticated SMTP connections]' \
240
255
'(--esmtp)-E[Use RFC 1425/1869 SMTP extensions]' \
241
256
'(-E)--esmtp[Use RFC 1425/1869 SMTP extensions]' \
242
'--version[version]' \
257
'--help[Display this help and exit.]' \
258
'(--hostname)-H[The hostname by which to identify this server.]:hostname:_hosts' \
259
'(-H)--hostname=[The hostname by which to identify this server.]:hostname:_hosts' \
260
'(--maildirdbmdomain)-d[generate an SMTP/POP3 virtual domain which saves to "path"]:maildirdbmdomain:_files' \
261
'(-d)--maildirdbmdomain=[generate an SMTP/POP3 virtual domain which saves to "path"]:maildirdbmdomain:_files' \
243
262
'(--passwordfile)-P[Specify a file containing username:password login info for authenticated ESMTP connections.]:passwordfile:_files' \
244
263
'(-P)--passwordfile=[Specify a file containing username:password login info for authenticated ESMTP connections.]:passwordfile:_files' \
264
'(--pop3)-p[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
265
'(-p)--pop3=[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
266
'(--pop3s)-S[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_files' \
267
'(-S)--pop3s=[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_files' \
268
"(--relay)-R[Relay messages according to their envelope 'To', using the givenpath as a queue directory.]:relay:_files" \
269
"(-R)--relay=[Relay messages according to their envelope 'To', using the givenpath as a queue directory.]:relay:_files" \
270
'(--smtp)-s[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
271
'(-s)--smtp=[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
272
'(--user)-u[add a user/password to the last specified domains]:user:_files' \
273
'(-u)--user=[add a user/password to the last specified domains]:user:_files' \
274
'--version[version]' \