Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: third_party/twisted_8_1/twisted/python/zsh/_twistd

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #compdef twistd
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 '--chroot=[Chroot to a supplied directory before running]:chroot directory:_dirs ' \
24 '(--debug)-b[run the application in the Python Debugger (implies nodaemon),]' \
25 '(-b)--debug[run the application in the Python Debugger (implies nodaemon),]' \
26 '(--encrypted)-e[The specified tap/aos/xml file is encrypted.]' \
27 '(-e)--encrypted[The specified tap/aos/xml file is encrypted.]' \
28 '--euid[Set only effective user-id rather than real user-id. (This option has no effect unless the server is running as root, in which case it means not to shed all privileges after binding ports, retaining the option to regain privileges i n cases such as spawning processes. Use with caution.)]' \
29 '(--python --xml --source -y -x -s --file)-f[read the given .tap file]:file:_fil es -g "*.tap"' \
30 '(--python --xml --source -y -x -s -f)--file=[read the given .tap file]:file:_fi les -g "*.tap"' \
31 '(--gid)-g[The gid to run as.]:gid:_files' \
32 '(-g)--gid=[The gid to run as.]:gid:_files' \
33 '--help[Display this help and exit.]' \
34 '--help-reactors[Display a list of possibly available reactor names.]' \
35 '(--logfile)-l[log to a specified file, - for stdout]:logfile:_files' \
36 '(-l)--logfile=[log to a specified file, - for stdout]:logfile:_files' \
37 '(--no_save)-o[do not save state on shutdown]' \
38 '(-o)--no_save[do not save state on shutdown]' \
39 "(--nodaemon)-n[don't daemonize]" \
40 "(-n)--nodaemon[don't daemonize]" \
41 "--nothotshot[Don't use the 'hotshot' profiler even if it's available.]" \
42 "--originalname[Don't try to change the process name]" \
43 '--pidfile=[Name of the pidfile (default: twistd.pid)]:pidfile:_files -g "*.pid" ' \
44 '--prefix=[Use the given prefix when syslogging (default: twisted)]:prefix:_file s' \
45 '(--profile)-p[Run in profile mode, dumping results to specified file]:profile:_ files' \
46 '(-p)--profile=[Run in profile mode, dumping results to specified file]:profile: _files' \
47 '(--file --xml --source -f -x -s --python)-y[read an application from within a P ython file (implies -o)]:python:_files -g "*.(tac|py)"' \
48 '(--file --xml --source -f -x -s -y)--python=[read an application from within a Python file (implies -o)]:python:_files -g "*.(tac|py)"' \
49 '(--quiet)-q[No-op for backwards compatability.]' \
50 '(-q)--quiet[No-op for backwards compatability.]' \
51 '(--reactor)-r[Which reactor to use (see --help-reactors for a list of possibili ties)]:reactor:(kqueue win32 epoll iocp gtk cf gtk2 default debug-gui poll glib2 select wx)' \
52 '(-r)--reactor=[Which reactor to use (see --help-reactors for a list of possibil ities)]:reactor:(kqueue win32 epoll iocp gtk cf gtk2 default debug-gui poll glib 2 select wx)' \
53 '--report-profile=[E-mail address to use when reporting dynamic execution profil er stats. This should not be combined with other profiling options. This will only take effect if the application to be run has an application name.]:report-p rofile:_files' \
54 '(--rundir)-d[Change to a supplied directory before running]:rundir:_dirs' \
55 '(-d)--rundir=[Change to a supplied directory before running]:rundir:_dirs' \
56 '--savestats[save the Stats object rather than the text output of the profiler.] ' \
57 '(--file --python --xml -f -y -x --source)-s[Read an application from a .tas fil e (AOT format).]:source:_files -g "*.tas"' \
58 '(--file --python --xml -f -y -x -s)--source=[Read an application from a .tas fi le (AOT format).]:source:_files -g "*.tas"' \
59 '--spew[Print an insanely verbose log of everything that happens.]' \
60 '--syslog[Log to syslog, not to file]' \
61 '(--uid)-u[The uid to run as.]:uid:_files' \
62 '(-u)--uid=[The uid to run as.]:uid:_files' \
63 '--version[Print version information and exit.]' \
64 '(--file --python --source -f -y -s --xml)-x[Read an application from a .tax fil e (Marmalade format).]:xml:_files -g "*.tax"' \
65 '(--file --python --source -f -y -s -x)--xml=[Read an application from a .tax fi le (Marmalade format).]:xml:_files -g "*.tax"' \
66 && return 0
67 if (( CURRENT == 1 )); then
68 _describe "service to run" _zsh_subcmds_array && ret=0
69 fi
70 (( ret )) || return 0
71
72 service="$words[1]"
73
74 case $service in
75 web2)
76 _arguments -s -A "-*" \
77 "--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'fo o.ext']" \
78 "(--certificate)-c[SSL certificate to use for HTTPS.]:certificate:_files -g '*.p em'" \
79 "(-c)--certificate=[SSL certificate to use for HTTPS.]:certificate:_files -g '*. pem'" \
80 '--class=[A class that will be used to serve the root resource. Must implement twisted.web2.iweb.IResource and take no arguments.]:class:_files' \
81 '--dav=[A path that will be used to serve the root resource as a DAV Collection. ]:dav:_files' \
82 '--help[Display this help and exit.]' \
83 '--https=[Port to listen on for Secure HTTP.]:https:_files' \
84 '--ignore-ext=[Specify an extension to ignore. These will be processed in order .]:ignore-ext:_files' \
85 '(--index)-i[Add the name of a file used to check for directory indexes.]:index: _files' \
86 '(-i)--index=[Add the name of a file used to check for directory indexes.]:index :_files' \
87 '(--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' \
88 '(-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' \
89 "--mimetype=[Mapping from file extension to MIME Type in the form of 'ext=type'. ]:mimetype:_files" \
90 '--path=[A path that will be used to serve the root resource as a raw file]:path :_files' \
91 '(--port)-p[Port to start the server on.]:port:_files' \
92 '(-p)--port=[Port to start the server on.]:port:_files' \
93 "(--privkey)-k[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
94 "(-k)--privkey=[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
95 "--processor=[\`ext=class' where \`class' is added as a Processor for files endi ng]:processor:_files" \
96 '--version[version]' \
97 '--vhost-class=[Specify a virtual host in the form of domain=class,]:vhost-class :_files' \
98 '--vhost-dav=[Specify a virtual host in the form of domain=path,]:vhost-dav:_fil es' \
99 '--vhost-path=[Specify a directory to use for automatic named virtual hosts.]:vh ost-path:_files' \
100 '--vhost-static=[Specify a virtual host in the form of domain=path to be served as]:vhost-static:_files' \
101 && return 0
102 ;;
103 ftp)
104 _arguments -s -A "-*" \
105 '--help[Display this help and exit.]' \
106 '--password-file=[username:password-style credentials database]:password-file:_f iles' \
107 '(--port)-p[set the port number]:port:_files' \
108 '(-p)--port=[set the port number]:port:_files' \
109 '(--root)-r[define the root of the ftp-site.]:root:_files' \
110 '(-r)--root=[define the root of the ftp-site.]:root:_files' \
111 '--userAnonymous=[Name of the anonymous user.]:userAnonymous:_files' \
112 '--version[version]' \
113 && return 0
114 ;;
115 telnet)
116 _arguments -s -A "-*" \
117 '--help[Display this help and exit.]' \
118 '(--password)-w[set the password]:password:_files' \
119 '(-w)--password=[set the password]:password:_files' \
120 '(--port)-p[port to listen on]:port:_files' \
121 '(-p)--port=[port to listen on]:port:_files' \
122 '(--username)-u[set the login username]:username:_users' \
123 '(-u)--username=[set the login username]:username:_users' \
124 '--version[version]' \
125 && return 0
126 ;;
127 socks)
128 _arguments -s -A "-*" \
129 '--help[Display this help and exit.]' \
130 '(--interface)-i[local interface to which we listen]:interface:_files' \
131 '(-i)--interface=[local interface to which we listen]:interface:_files' \
132 "(--log)-l[file to log connection data to]:log:_files -g '*.log'" \
133 "(-l)--log=[file to log connection data to]:log:_files -g '*.log'" \
134 '(--port)-p[Port on which to listen]:port:_files' \
135 '(-p)--port=[Port on which to listen]:port:_files' \
136 '--version[version]' \
137 && return 0
138 ;;
139 manhole-old)
140 _arguments -s -A "-*" \
141 '--help[Display this help and exit.]' \
142 "(--password)-w[Required. '-' will prompt or read a password from stdin.]:passw ord:_files" \
143 "(-w)--password=[Required. '-' will prompt or read a password from stdin.]:pass word:_files" \
144 '(--port)-p[Port to listen on]:port:_files' \
145 '(-p)--port=[Port to listen on]:port:_files' \
146 '(--tracebacks)-T[Allow tracebacks to be sent over the network]' \
147 '(-T)--tracebacks[Allow tracebacks to be sent over the network]' \
148 '(--user)-u[Name of user to allow to log in]:user:_users' \
149 '(-u)--user=[Name of user to allow to log in]:user:_users' \
150 '--version[version]' \
151 && return 0
152 ;;
153 portforward)
154 _arguments -s -A "-*" \
155 '(--dest_port)-d[Set the destination port.]:dest_port:_files' \
156 '(-d)--dest_port=[Set the destination port.]:dest_port:_files' \
157 '--help[Display this help and exit.]' \
158 '(--host)-h[Set the host.]:host:_hosts' \
159 '(-h)--host=[Set the host.]:host:_hosts' \
160 '(--port)-p[Set the port number.]:port:_files' \
161 '(-p)--port=[Set the port number.]:port:_files' \
162 '--version[version]' \
163 && return 0
164 ;;
165 web)
166 _arguments -s -A "-*" \
167 "--allow-ignore-ext[Specify whether or not a request for 'foo' should return 'fo o.ext']" \
168 "(--certificate)-c[SSL certificate to use for HTTPS. ]:certificate:_files -g '*. pem'" \
169 "(-c)--certificate=[SSL certificate to use for HTTPS. ]:certificate:_files -g '* .pem'" \
170 '--class=[Create a Resource subclass with a zero-argument constructor.]:class:_f iles' \
171 '--flashconduit=[Start a flashconduit on the specified port.]:flashconduit:_file s' \
172 '--help[Display this help and exit.]' \
173 '--https=[Port to listen on for Secure HTTP.]:https:_files' \
174 '--ignore-ext=[Specify an extension to ignore. These will be processed in order .]:ignore-ext:_files' \
175 '(--index)-i[Add the name of a file used to check for directory indexes.]:index: _files' \
176 '(-i)--index=[Add the name of a file used to check for directory indexes.]:index :_files' \
177 "(--logfile)-l[Path to web CLF (Combined Log Format) log file.]:logfile:_files - g '*.log'" \
178 "(-l)--logfile=[Path to web CLF (Combined Log Format) log file.]:logfile:_files -g '*.log'" \
179 '(--mime-type)-m[Specify the default mime-type for static files.]:mime-type:_fil es' \
180 '(-m)--mime-type=[Specify the default mime-type for static files.]:mime-type:_fi les' \
181 '(--notracebacks)-n[Display tracebacks in broken web pages. Displaying traceback s to users may be security risk!]' \
182 '(-n)--notracebacks[Display tracebacks in broken web pages. Displaying traceback s to users may be security risk!]' \
183 '--path=[<path> is either a specific file or a directory to]:path:_files' \
184 '--personal[Instead of generating a webserver, generate a ResourcePublisher whic h listens on ~/.twistd-web-pb]' \
185 '(--port)-p[Port to start the server on.]:port:_files' \
186 '(-p)--port=[Port to start the server on.]:port:_files' \
187 "(--privkey)-k[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
188 "(-k)--privkey=[SSL certificate to use for HTTPS.]:privkey:_files -g '*.pem'" \
189 "--processor=[\`ext=class' where \`class' is added as a Processor for files endi ng]:processor:_files" \
190 '--resource-script=[An .rpy file to be used as the root resource of the webserve r.]:resource-script:_files' \
191 '(--static)-s[Same as --path, this is deprecated and will be removed in a]:stati c:_files' \
192 '(-s)--static=[Same as --path, this is deprecated and will be removed in a]:stat ic:_files' \
193 '(--user)-u[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
194 '(-u)--user[Makes a server with ~/public_html and ~/.twistd-web-pb support for]' \
195 '--version[version]' \
196 && return 0
197 ;;
198 inetd)
199 _arguments -s -A "-*" \
200 "(--file)-f[Service configuration file]:file:_files -g '*.conf'" \
201 "(-f)--file=[Service configuration file]:file:_files -g '*.conf'" \
202 '--help[Display this help and exit.]' \
203 "(--nointernal)-i[Don't run internal services]" \
204 "(-i)--nointernal[Don't run internal services]" \
205 '(--rpc)-r[RPC procedure table file]:rpc:_files' \
206 '(-r)--rpc=[RPC procedure table file]:rpc:_files' \
207 '--version[version]' \
208 && return 0
209 ;;
210 news)
211 _arguments -s -A "-*" \
212 '(--datadir)-d[Root data storage path]:datadir:_dirs' \
213 '(-d)--datadir=[Root data storage path]:datadir:_dirs' \
214 '--group=[The name of a newsgroup to carry.]:group:_files' \
215 '--help[Display this help and exit.]' \
216 '(--interface)-i[Interface to which to bind]:interface:_files' \
217 '(-i)--interface=[Interface to which to bind]:interface:_files' \
218 '(--mailhost)-m[Host of SMTP server to use]:mailhost:_hosts' \
219 '(-m)--mailhost=[Host of SMTP server to use]:mailhost:_hosts' \
220 '--moderator=[The email of the moderator for the most recently passed group.]:mo derator:_files' \
221 '(--port)-p[Listen port]:port:_files' \
222 '(-p)--port=[Listen port]:port:_files' \
223 '--server=[The address of a Usenet server to pass messages to and receive messag es from.]:server:_files' \
224 '--subscription=[A newsgroup to list as a recommended subscription.]:subscriptio n:_files' \
225 '--version[version]' \
226 && return 0
227 ;;
228 words)
229 _arguments -s -A "-*" \
230 '--group=[Specify a group which should exist]:group:_files' \
231 '--help[Display this help and exit.]' \
232 '--hostname=[Name of this server; purely an informative]:hostname:_files' \
233 '--irc-port=[strports description of the port to bind for the irc server]:irc-p ort:_files' \
234 '--passwd=[Name of a passwd-style password file. (REQUIRED)]:passwd:_files' \
235 '--pb-port=[strports description of the port to bind for the pb server]:pb-port :_files' \
236 '--version[version]' \
237 && return 0
238 ;;
239 toc)
240 _arguments -s -A "-*" \
241 '--help[Display this help and exit.]' \
242 '(--port)-p[port]:port:_files' \
243 '(-p)--port=[port]:port:_files' \
244 '--version[version]' \
245 && return 0
246 ;;
247 dns)
248 _arguments -s -A "-*" \
249 '--bindzone=[Specify the filename of a BIND9 syntax zone definition]:bindzone:_f iles' \
250 '(--cache)-c[Enable record caching]' \
251 '(-c)--cache[Enable record caching]' \
252 '--help[Display this help and exit.]' \
253 '--hosts-file=[Perform lookups with a hosts file]:hosts-file:_files' \
254 '(--interface)-i[The interface to which to bind]:interface:_files' \
255 '(-i)--interface=[The interface to which to bind]:interface:_files' \
256 '(--port)-p[The port on which to listen]:port:_files' \
257 '(-p)--port=[The port on which to listen]:port:_files' \
258 '--pyzone=[Specify the filename of a Python syntax zone definition]:pyzone:_file s' \
259 '(--recursive)-r[Perform recursive lookups]' \
260 '(-r)--recursive[Perform recursive lookups]' \
261 '--resolv-conf=[Override location of resolv.conf (implies --recursive)]:resolv-c onf:_files' \
262 '--secondary=[Act as secondary for the specified domain, performing]:secondary:_ files' \
263 '(--verbose)-v[Log verbosely]' \
264 '(-v)--verbose[Log verbosely]' \
265 '--version[version]' \
266 && return 0
267 ;;
268 mail)
269 _arguments -s -A "-*" \
270 '(--aliases)-A[Specify an aliases(5) file to use for this domain]:aliases:_files ' \
271 '(-A)--aliases=[Specify an aliases(5) file to use for this domain]:aliases:_file s' \
272 '(--bounce-to-postmaster)-b[undelivered mails are sent to the postmaster]' \
273 '(-b)--bounce-to-postmaster[undelivered mails are sent to the postmaster]' \
274 '(--certificate)-c[Certificate file to use for SSL connections]:certificate:_fil es' \
275 '(-c)--certificate=[Certificate file to use for SSL connections]:certificate:_fi les' \
276 '(--default)-D[Make the most recently specified domain the default domain.]' \
277 '(-D)--default[Make the most recently specified domain the default domain.]' \
278 '--disable-anonymous[Disallow non-authenticated SMTP connections]' \
279 '(--esmtp)-E[Use RFC 1425/1869 SMTP extensions]' \
280 '(-E)--esmtp[Use RFC 1425/1869 SMTP extensions]' \
281 '--help[Display this help and exit.]' \
282 '(--hostname)-H[The hostname by which to identify this server.]:hostname:_hosts' \
283 '(-H)--hostname=[The hostname by which to identify this server.]:hostname:_hosts ' \
284 '(--maildirdbmdomain)-d[generate an SMTP/POP3 virtual domain which saves to "pat h"]:maildirdbmdomain:_files' \
285 '(-d)--maildirdbmdomain=[generate an SMTP/POP3 virtual domain which saves to "pa th"]:maildirdbmdomain:_files' \
286 '(--passwordfile)-P[Specify a file containing username:password login info for a uthenticated ESMTP connections.]:passwordfile:_files' \
287 '(-P)--passwordfile=[Specify a file containing username:password login info for authenticated ESMTP connections.]:passwordfile:_files' \
288 '(--pop3)-p[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
289 '(-p)--pop3=[Port to start the POP3 server on (0 to disable).]:pop3:_files' \
290 '(--pop3s)-S[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_f iles' \
291 '(-S)--pop3s=[Port to start the POP3-over-SSL server on (0 to disable).]:pop3s:_ files' \
292 "(--relay)-R[Relay messages according to their envelope 'To', using the givenpat h as a queue directory.]:relay:_files" \
293 "(-R)--relay=[Relay messages according to their envelope 'To', using the givenpa th as a queue directory.]:relay:_files" \
294 '(--smtp)-s[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
295 '(-s)--smtp=[Port to start the SMTP server on (0 to disable).]:smtp:_files' \
296 '(--user)-u[add a user/password to the last specified domains]:user:_files' \
297 '(-u)--user=[add a user/password to the last specified domains]:user:_files' \
298 '--version[version]' \
299 && return 0
300 ;;
301 manhole)
302 _arguments -s -A "-*" \
303 '--help[Display this help and exit.]' \
304 '(--passwd)-p[name of a passwd(5)-format username/password file]:passwd:_files' \
305 '(-p)--passwd=[name of a passwd(5)-format username/password file]:passwd:_files' \
306 '(--sshPort)-s[strports description of the address on which to listen for ssh co nnections]:sshPort:_files' \
307 '(-s)--sshPort=[strports description of the address on which to listen for ssh c onnections]:sshPort:_files' \
308 '(--telnetPort)-t[strports description of the address on which to listen for tel net connections]:telnetPort:_files' \
309 '(-t)--telnetPort=[strports description of the address on which to listen for te lnet connections]:telnetPort:_files' \
310 '--user=[user]:user:_files' \
311 '--version[version]' \
312 && return 0
313 ;;
314 conch)
315 _arguments -s -A "-*" \
316 '(--data)-d[directory to look for host keys in]:data:_dirs' \
317 '(-d)--data=[directory to look for host keys in]:data:_dirs' \
318 '--help[Display this help and exit.]' \
319 '(--interface)-i[local interface to which we listen]:interface:_files' \
320 '(-i)--interface=[local interface to which we listen]:interface:_files' \
321 '--moduli=[directory to look for moduli in (if different from --data)]:moduli:_d irs' \
322 '(--port)-p[Port on which to listen]:port:_files' \
323 '(-p)--port=[Port on which to listen]:port:_files' \
324 '--version[version]' \
325 && return 0
326 ;;
327 *) _message "don't know how to complete $service";;
328 esac
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/python/zsh/_trial ('k') | third_party/twisted_8_1/twisted/python/zsh/_websetroot » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698