Bug 50981

Summary: webkit-patch should use optcomplete to provide bash/zsh autocompletion
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, aroben, arv, jianli, levin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 91606    
Bug Blocks:    

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.