OLD | NEW |
| (Empty) |
1 #compdef mktap | |
2 local _zsh_subcmds_array | |
3 _zsh_subcmds_array=( | |
4 "web2:An HTTP/1.1 web server that can serve from a filesystem or application res
ource." | |
5 "ftp:An FTP server." | |
6 "telnet:A simple, telnet-based remote debugging service." | |
7 "socks:A SOCKSv4 proxy service." | |
8 "manhole-old:An interactive remote debugger service." | |
9 "portforward:A simple port-forwarder." | |
10 "web:A general-purpose web server which can serve from a filesystem or applicati
on resource." | |
11 "inetd:An inetd(8) replacement." | |
12 "news:A news server." | |
13 "words:A modern words server" | |
14 "toc:An AIM TOC service." | |
15 "dns:A domain name server." | |
16 "mail:An email service" | |
17 "manhole:An interactive remote debugger service accessible via telnet and ssh an
d providing syntax coloring and basic line editing functionality." | |
18 "conch:A Conch SSH service." | |
19 ) | |
20 | |
21 _arguments -s -A "-*" \ | |
22 '*::subcmd:->subcmd' \ | |
23 '(--append)-a[An existing .tap file to append the plugin to, rather than creatin
g 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 creati
ng a new one.]:tap file to append to:_files -g "*.tap"' \ | |
25 '(--appname)-n[The process name to use for this application.]:appname:_files' \ | |
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]' \ | |
29 "(--encrypted)-e[Encrypt file before writing (will make the extension of the res
ultant file begin with 'e')]" \ | |
30 "(-e)--encrypted[Encrypt file before writing (will make the extension of the res
ultant file begin with 'e')]" \ | |
31 '(--gid)-g[The gid to run as.]:gid to run as:_files' \ | |
32 '(-g)--gid=[The gid to run as.]:gid to run as:_files' \ | |
33 '(--help)-h[Display this message]' \ | |
34 '(-h)--help[Display this message]' \ | |
35 '(--progress)-p[Show progress information for plugin loading]' \ | |
36 '(-p)--progress[Show progress information for plugin loading]' \ | |
37 "(--type)-t[The output format to use; this can be 'pickle', 'xml', or 'source'.]
:output format:(pickle xml source)" \ | |
38 "(-t)--type=[The output format to use; this can be 'pickle', 'xml', or 'source'.
]:output format:(pickle xml source)" \ | |
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]' \ | |
42 && return 0 | |
43 if (( CURRENT == 1 )); then | |
44 _describe "tap to build" _zsh_subcmds_array && ret=0 | |
45 fi | |
46 (( ret )) || return 0 | |
47 | |
48 service="$words[1]" | |
49 | |
50 case $service in | |
51 web2) | |
52 _arguments -s -A "-*" \ | |
53 "--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'fo
o.ext']" \ | |
54 "(--certificate)-c[SSL certificate to use for HTTPS.]:certificate:_files -g '*.p
em'" \ | |
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 acce
ss log information will be written to the standard twisted log file.]:logfile:_f
iles' \ | |
64 '(-l)--logfile=[Common Access Logging Format file to write to if unspecified acc
ess 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 endi
ng]: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:_fil
es' \ | |
75 '--vhost-path=[Specify a directory to use for automatic named virtual hosts.]:vh
ost-path:_files' \ | |
76 '--vhost-static=[Specify a virtual host in the form of domain=path to be served
as]:vhost-static:_files' \ | |
77 && return 0 | |
78 ;; | |
79 ftp) | |
80 _arguments -s -A "-*" \ | |
81 '--help[Display this help and exit.]' \ | |
82 '--password-file=[username:password-style credentials database]:password-file:_f
iles' \ | |
83 '(--port)-p[set the port number]:port:_files' \ | |
84 '(-p)--port=[set the port number]:port:_files' \ | |
85 '(--root)-r[define the root of the ftp-site.]:root:_files' \ | |
86 '(-r)--root=[define the root of the ftp-site.]:root:_files' \ | |
87 '--userAnonymous=[Name of the anonymous user.]:userAnonymous:_files' \ | |
88 '--version[version]' \ | |
89 && return 0 | |
90 ;; | |
91 telnet) | |
92 _arguments -s -A "-*" \ | |
93 '--help[Display this help and exit.]' \ | |
94 '(--password)-w[set the password]:password:_files' \ | |
95 '(-w)--password=[set the password]:password:_files' \ | |
96 '(--port)-p[port to listen on]:port:_files' \ | |
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' \ | |
100 '--version[version]' \ | |
101 && return 0 | |
102 ;; | |
103 socks) | |
104 _arguments -s -A "-*" \ | |
105 '--help[Display this help and exit.]' \ | |
106 '(--interface)-i[local interface to which we listen]:interface:_files' \ | |
107 '(-i)--interface=[local interface to which we listen]:interface:_files' \ | |
108 "(--log)-l[file to log connection data to]:log:_files -g '*.log'" \ | |
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]' \ | |
113 && return 0 | |
114 ;; | |
115 manhole-old) | |
116 _arguments -s -A "-*" \ | |
117 '--help[Display this help and exit.]' \ | |
118 "(--password)-w[Required. '-' will prompt or read a password from stdin.]:passw
ord:_files" \ | |
119 "(-w)--password=[Required. '-' will prompt or read a password from stdin.]:pass
word:_files" \ | |
120 '(--port)-p[Port to listen on]:port:_files' \ | |
121 '(-p)--port=[Port to listen on]:port:_files' \ | |
122 '(--tracebacks)-T[Allow tracebacks to be sent over the network]' \ | |
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]' \ | |
127 && return 0 | |
128 ;; | |
129 portforward) | |
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.]' \ | |
134 '(--host)-h[Set the host.]:host:_hosts' \ | |
135 '(-h)--host=[Set the host.]:host:_hosts' \ | |
136 '(--port)-p[Set the port number.]:port:_files' \ | |
137 '(-p)--port=[Set the port number.]:port:_files' \ | |
138 '--version[version]' \ | |
139 && return 0 | |
140 ;; | |
141 web) | |
142 _arguments -s -A "-*" \ | |
143 "--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'fo
o.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:_f
iles' \ | |
147 '--flashconduit=[Start a flashconduit on the specified port.]:flashconduit:_file
s' \ | |
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' \ | |
153 "(--logfile)-l[Path to web CLF (Combined Log Format) log file.]:logfile:_files -
g '*.log'" \ | |
154 "(-l)--logfile=[Path to web CLF (Combined Log Format) log file.]:logfile:_files
-g '*.log'" \ | |
155 '(--mime-type)-m[Specify the default mime-type for static files.]:mime-type:_fil
es' \ | |
156 '(-m)--mime-type=[Specify the default mime-type for static files.]:mime-type:_fi
les' \ | |
157 '(--notracebacks)-n[Display tracebacks in broken web pages. Displaying traceback
s to users may be security risk!]' \ | |
158 '(-n)--notracebacks[Display tracebacks in broken web pages. Displaying traceback
s to users may be security risk!]' \ | |
159 '--path=[<path> is either a specific file or a directory to]:path:_files' \ | |
160 '--personal[Instead of generating a webserver, generate a ResourcePublisher whic
h 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 endi
ng]:processor:_files" \ | |
166 '--resource-script=[An .rpy file to be used as the root resource of the webserve
r.]:resource-script:_files' \ | |
167 '(--static)-s[Same as --path, this is deprecated and will be removed in a]:stati
c:_files' \ | |
168 '(-s)--static=[Same as --path, this is deprecated and will be removed in a]:stat
ic:_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]'
\ | |
171 '--version[version]' \ | |
172 && return 0 | |
173 ;; | |
174 inetd) | |
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.]' \ | |
179 "(--nointernal)-i[Don't run internal services]" \ | |
180 "(-i)--nointernal[Don't run internal services]" \ | |
181 '(--rpc)-r[RPC procedure table file]:rpc:_files' \ | |
182 '(-r)--rpc=[RPC procedure table file]:rpc:_files' \ | |
183 '--version[version]' \ | |
184 && return 0 | |
185 ;; | |
186 news) | |
187 _arguments -s -A "-*" \ | |
188 '(--datadir)-d[Root data storage path]:datadir:_dirs' \ | |
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' \ | |
194 '(--mailhost)-m[Host of SMTP server to use]:mailhost:_hosts' \ | |
195 '(-m)--mailhost=[Host of SMTP server to use]:mailhost:_hosts' \ | |
196 '--moderator=[The email of the moderator for the most recently passed group.]:mo
derator:_files' \ | |
197 '(--port)-p[Listen port]:port:_files' \ | |
198 '(-p)--port=[Listen port]:port:_files' \ | |
199 '--server=[The address of a Usenet server to pass messages to and receive messag
es from.]:server:_files' \ | |
200 '--subscription=[A newsgroup to list as a recommended subscription.]:subscriptio
n:_files' \ | |
201 '--version[version]' \ | |
202 && return 0 | |
203 ;; | |
204 words) | |
205 _arguments -s -A "-*" \ | |
206 '--group=[Specify a group which should exist]:group:_files' \ | |
207 '--help[Display this help and exit.]' \ | |
208 '--hostname=[Name of this server; purely an informative]:hostname:_files' \ | |
209 '--irc-port=[strports description of the port to bind for the irc server]:irc-p
ort:_files' \ | |
210 '--passwd=[Name of a passwd-style password file. (REQUIRED)]:passwd:_files' \ | |
211 '--pb-port=[strports description of the port to bind for the pb server]:pb-port
:_files' \ | |
212 '--version[version]' \ | |
213 && return 0 | |
214 ;; | |
215 toc) | |
216 _arguments -s -A "-*" \ | |
217 '--help[Display this help and exit.]' \ | |
218 '(--port)-p[port]:port:_files' \ | |
219 '(-p)--port=[port]:port:_files' \ | |
220 '--version[version]' \ | |
221 && return 0 | |
222 ;; | |
223 dns) | |
224 _arguments -s -A "-*" \ | |
225 '--bindzone=[Specify the filename of a BIND9 syntax zone definition]:bindzone:_f
iles' \ | |
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' \ | |
230 '(--interface)-i[The interface to which to bind]:interface:_files' \ | |
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' \ | |
234 '--pyzone=[Specify the filename of a Python syntax zone definition]:pyzone:_file
s' \ | |
235 '(--recursive)-r[Perform recursive lookups]' \ | |
236 '(-r)--recursive[Perform recursive lookups]' \ | |
237 '--resolv-conf=[Override location of resolv.conf (implies --recursive)]:resolv-c
onf:_files' \ | |
238 '--secondary=[Act as secondary for the specified domain, performing]:secondary:_
files' \ | |
239 '(--verbose)-v[Log verbosely]' \ | |
240 '(-v)--verbose[Log verbosely]' \ | |
241 '--version[version]' \ | |
242 && return 0 | |
243 ;; | |
244 mail) | |
245 _arguments -s -A "-*" \ | |
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:_file
s' \ | |
248 '(--bounce-to-postmaster)-b[undelivered mails are sent to the postmaster]' \ | |
249 '(-b)--bounce-to-postmaster[undelivered mails are sent to the postmaster]' \ | |
250 '(--certificate)-c[Certificate file to use for SSL connections]:certificate:_fil
es' \ | |
251 '(-c)--certificate=[Certificate file to use for SSL connections]:certificate:_fi
les' \ | |
252 '(--default)-D[Make the most recently specified domain the default domain.]' \ | |
253 '(-D)--default[Make the most recently specified domain the default domain.]' \ | |
254 '--disable-anonymous[Disallow non-authenticated SMTP connections]' \ | |
255 '(--esmtp)-E[Use RFC 1425/1869 SMTP extensions]' \ | |
256 '(-E)--esmtp[Use RFC 1425/1869 SMTP extensions]' \ | |
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 "pat
h"]:maildirdbmdomain:_files' \ | |
261 '(-d)--maildirdbmdomain=[generate an SMTP/POP3 virtual domain which saves to "pa
th"]:maildirdbmdomain:_files' \ | |
262 '(--passwordfile)-P[Specify a file containing username:password login info for a
uthenticated ESMTP connections.]:passwordfile:_files' \ | |
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:_f
iles' \ | |
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 givenpat
h as a queue directory.]:relay:_files" \ | |
269 "(-R)--relay=[Relay messages according to their envelope 'To', using the givenpa
th 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]' \ | |
275 && return 0 | |
276 ;; | |
277 manhole) | |
278 _arguments -s -A "-*" \ | |
279 '--help[Display this help and exit.]' \ | |
280 '(--passwd)-p[name of a passwd(5)-format username/password file]:passwd:_files'
\ | |
281 '(-p)--passwd=[name of a passwd(5)-format username/password file]:passwd:_files'
\ | |
282 '(--sshPort)-s[strports description of the address on which to listen for ssh co
nnections]:sshPort:_files' \ | |
283 '(-s)--sshPort=[strports description of the address on which to listen for ssh c
onnections]:sshPort:_files' \ | |
284 '(--telnetPort)-t[strports description of the address on which to listen for tel
net connections]:telnetPort:_files' \ | |
285 '(-t)--telnetPort=[strports description of the address on which to listen for te
lnet connections]:telnetPort:_files' \ | |
286 '--user=[user]:user:_files' \ | |
287 '--version[version]' \ | |
288 && return 0 | |
289 ;; | |
290 conch) | |
291 _arguments -s -A "-*" \ | |
292 '(--data)-d[directory to look for host keys in]:data:_dirs' \ | |
293 '(-d)--data=[directory to look for host keys in]:data:_dirs' \ | |
294 '--help[Display this help and exit.]' \ | |
295 '(--interface)-i[local interface to which we listen]:interface:_files' \ | |
296 '(-i)--interface=[local interface to which we listen]:interface:_files' \ | |
297 '--moduli=[directory to look for moduli in (if different from --data)]:moduli:_d
irs' \ | |
298 '(--port)-p[Port on which to listen]:port:_files' \ | |
299 '(-p)--port=[Port on which to listen]:port:_files' \ | |
300 '--version[version]' \ | |
301 && return 0 | |
302 ;; | |
303 *) _message "don't know how to complete $service";; | |
304 esac | |
OLD | NEW |