zsh-workers
 help / color / mirror / code / Atom feed
From: Fletch <fletch@phydeaux.org>
To: zsh-workers@sunsite.dk
Subject: completion function for apachectl
Date: 23 Feb 2001 10:07:14 -0500	[thread overview]
Message-ID: <m2y9uxjv4t.fsf@godzilla.phydeaux.org> (raw)


        This completes for apachectl (a utility that comes with apache 
to do things such as restarting apache, syntax checking it's
configuration file, and the like).


--- /dev/null   Tue May  5 16:32:27 1998
+++ _apachectl  Fri Feb 23 10:01:49 2001
@@ -0,0 +1,12 @@
+#compdef apachectl
+
+local curcontext="$curcontext" state line commands ret=1
+typeset -A opt_args
+
+commands=( start startssl stop restart fullstatus status 
+           graceful configtest help )
+
+_arguments \
+  ":Choose an action:($commands)" && ret=0
+
+return $ret




-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch@phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U


             reply	other threads:[~2001-02-23 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-23 15:07 Fletch [this message]
2001-02-26 10:13 Sven Wischnowsky
2001-02-26 14:31 ` Fletch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y9uxjv4t.fsf@godzilla.phydeaux.org \
    --to=fletch@phydeaux.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).