zsh-users
 help / color / mirror / code / Atom feed
From: Eric.D.Friedman@WellsFargo.COM
To: zsh-users@sunsite.dk
Subject: completing a single clearcase command
Date: Fri, 7 Feb 2003 13:32:56 -0800	[thread overview]
Message-ID: <8F6C90BF40FFD211948B0001FA7E51661288DF8F@xcem-casfo-13.wellsfargo.com> (raw)

I know that various folks have tried to tackle completion for rational
clearcase, with some success.  I have a very specific completion task I'd
like to get working (as opposed to tackling the whole beast), and would
appreciate some pointers as to how to proceed.

Note that I'm using the "new" completion system.

Like CVS, clearcase has a 2-level command system.  The first command is
always "cleartool" (usually aliased to "ct").  The second is the real
operation you want to do.  So, for example, "ct ls" does a cleartool
equivalent of ls.

The subcommand I'm interested in getting completion on is "setview," which
has the following usage:

Usage: setview [-login] [-exec command-invocation] view-tag

The view-tag argument will be a name pulled from the list of available
views.  A list of these can be gotten (1 entry per line) by running
"cleartool lsview -short"

So, what I'd like to do is be able to type:

ct setview -l<TAB>  # complete optional switch
--> ct setview -login eric<TAB> # complete view-tag, using list from ct
lsview -short
  --> ct setview -login ericf_some_view_tag_from_ct_lsview_short_list<RET>

But, I'd like to still be able to get file completion and so forth on other
clearcase subcommands, so it's important that that not be disabled in the
process.

Any pointers/snippets would be very much appreciated.

Eric


             reply	other threads:[~2003-02-07 21:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 21:32 Eric.D.Friedman [this message]
2003-02-07 22:24 ` Paul Lew
2003-02-07 22:27   ` Dan Nelson
2003-02-08 19:44 ` Bart Schaefer
2003-02-09 21:38 ` Felix Rosencrantz
2003-02-10 11:50 ` Peter Stephenson

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=8F6C90BF40FFD211948B0001FA7E51661288DF8F@xcem-casfo-13.wellsfargo.com \
    --to=eric.d.friedman@wellsfargo.com \
    --cc=zsh-users@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).