Bug 50981 - webkit-patch should use optcomplete to provide bash/zsh autocompletion
Summary: webkit-patch should use optcomplete to provide bash/zsh autocompletion
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 91606
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-13 15:01 PST by Eric Seidel (no email)
Modified: 2017-07-18 08:30 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2010-12-13 15:01:22 PST
webkit-patch should use optcomplete to provide bash/zsh autocompletion

Would be easy to use thirdparty.autoinstalled to install:
http://furius.ca/optcomplete/

I'm not sure how nice it will play with our multi-level command stuff.  But it would be an awesome feature to have.

There may also be more modern python libraries for this stuff.
Comment 1 Eric Seidel (no email) 2010-12-13 15:03:09 PST
Nevermind, it was clearly designed with our use in mind!
http://furius.ca/optcomplete/bin/optcomplete-commands
Comment 2 Eric Seidel (no email) 2010-12-13 15:07:55 PST
Turns out someone already made a manual attempt:
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkit-tools-completion.sh
Comment 3 David Levin 2010-12-13 15:37:44 PST
(In reply to comment #2)
> Turns out someone already made a manual attempt:
> http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkit-tools-completion.sh

It was me. Over the last few days, I was just thinking that this should be internal to webkit-patch (but haven't made fwd progress on that at all).
Comment 4 Ojan Vafai 2010-12-13 16:19:25 PST
I've been using webkit-tools-completion.sh. It's awesome. +1 to building it in.