zsh-users
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: Eric.D.Friedman@WellsFargo.COM, zsh-users@sunsite.dk
Subject: Re: completing a single clearcase command
Date: Sun, 9 Feb 2003 13:38:06 -0800 (PST)	[thread overview]
Message-ID: <20030209213806.357.qmail@web10402.mail.yahoo.com> (raw)
In-Reply-To: <8F6C90BF40FFD211948B0001FA7E51661288DF8F@xcem-casfo-13.wellsfargo.com>

If you just want something to work, I suggest using Gorgan Koruga's clearcase
completion function as a base, which can be found at:
         http://www.zsh.org/mla/users/2001/msg00649.html

It handles a small set of the cleartools commands, but I suspect a good
used subset.

As part of my attempts to automatically create completion functions, I  decided
to tackle cleartool, generating a completion function via the help output.   I
wanted to automate the process, in order to make it easy to keep up with new
versions.  For details:
        http://www.geocities.com/f_rosencrantz/clearcase_generation.htm

Based on what you said, it sounds like you might have found the one I
generated, and it wasn't very helpful.  Mine has several problems.  One
significant problem when you attempt to use it, is that it is missing a
_cc_views function, and other functions that return lists of items (e.g. branch
names, type names,...)  You could write your own or steal them from Gorgan's
function. 

His function also has examples of creating these "listing functions". 
Basically, a listing function is something that runs some command (ct lsview
-short), which generates of list of possible values you want to complete.  You
have to parse the command output, find the values you want, and return those in
the proper format.

If there is demand, I would be willing to add my clearcase completion function
to the codeline.  It is pretty big, about the same size as the larch completion
function, which seems to be the largest one right now.

Once it is in the codeline, it would be easier for other folks to contribute
changes and make it more useful.  I haven't had access to Clearcase for a
while, so it is difficult to get listing functions that work.

-FR.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


  parent reply	other threads:[~2003-02-09 21:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 21:32 Eric.D.Friedman
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 [this message]
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=20030209213806.357.qmail@web10402.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --cc=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).