zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Qarras <dqarras@yahoo.com>
To: Clint Adams <clint@zsh.org>, zsh-workers@sunsite.dk
Subject: Re: PATCH: _module
Date: Wed, 14 Mar 2007 14:25:10 -0700 (PDT)	[thread overview]
Message-ID: <20070314212510.16891.qmail@web36807.mail.mud.yahoo.com> (raw)
In-Reply-To: <20070314211105.GA24978@scowler.net>

Hi Clint,

> Despite the generic name, this is not part of GNUstep; it's
> http://modules.sourceforge.net/ .
> 
> Daniel, someone will need to work on filling in the additional
> arguments.

thanks for your initiative! However, I guess the real meat would be
completion of the module files in $MODULEPATH or loaded module files
available with "module list". I'll inspect that later this week if you
don't beat me.

Thanks!


> 
> Index: Completion/Unix/Command/_module
> ===================================================================
> RCS file: Completion/Unix/Command/_module
> diff -N Completion/Unix/Command/_module
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ Completion/Unix/Command/_module	14 Mar 2007 21:06:49 -0000
> @@ -0,0 +1,29 @@
> +#compdef module
> +
> +local context state line
> +typeset -A opt_args
> +
> +_arguments \
> +  '(-f --force)'{--force,-f}'[force active dependency resolution]' \
> +  '(-t --terse)'{--terse,-t}'[display avail and list output in short
> format]' \
> +  '(-l --long)'{--long,-l}'[display avail and list output in long
> format]' \
> +  '(-h --human)'{--human,-h}'[display short output in human-readable
> format]' \
> +  '(-v --verbose)'{--verbose,-v}'[verbose]' \
> +  '(-s --silent)'{--silent,-s}'[disable verbose messages]' \
> +  '(-c --create)'{--create,-c}'[create caches]' \
> +  '(-i --icase)'{--icase,-i}'[case insensitive]' \
> +  '(-i --icase)'{--icase,-i}'[case insensitive]' \
> +  '(-u --userlvl)'{--userlvl,-u}'[set user level to
> value]:level:(novice expert advanced)' \
> +  '*::command:->subcmds' && return 0
> +
> +case "$state" in
> +  (subcmds)
> +    if (( CURRENT == 1 )); then
> +      compadd -- help load add unload rm switch swap display show
> list \
> +                 avail use unuse update clear purge whatis apropos
> keyword \
> +		 initadd initprepend initswitch initlist initclear
> +    else
> +      _files
> +    fi
> +  ;;
> +esac
> 



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 


  reply	other threads:[~2007-03-14 21:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 21:11 Clint Adams
2007-03-14 21:25 ` Daniel Qarras [this message]
2007-03-24  9:04 ` Daniel Qarras
2007-03-27 18:58 ` Daniel Qarras

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=20070314212510.16891.qmail@web36807.mail.mud.yahoo.com \
    --to=dqarras@yahoo.com \
    --cc=clint@zsh.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).