Bug 196908

Summary: Provide zsh completions for webkit-patch
Product: WebKit Reporter: Dean Jackson <dino>
Component: Tools / TestsAssignee: Dean Jackson <dino>
Status: NEW ---    
Severity: Normal CC: joepeck, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP none

Description Dean Jackson 2019-04-14 14:07:32 PDT
Provide zsh completions for webkit-patch
Comment 1 Dean Jackson 2019-04-14 14:10:15 PDT
Created attachment 367405 [details]
WIP
Comment 2 Dean Jackson 2019-04-14 14:11:38 PDT
Comment on attachment 367405 [details]
WIP

WIP - not for review

I just did a couple of commands to see how easy it is. I haven't worked out how to be more tricky - like ensuring that the last argument looks like a BUG or ATTACHMENT id.

I don't know how complete we'd want to get before adding this.
Comment 3 Radar WebKit Bug Importer 2019-04-14 14:14:25 PDT
<rdar://problem/49888133>
Comment 4 Tim Horton 2019-04-14 14:21:00 PDT
(In reply to Dean Jackson from comment #2)
> Comment on attachment 367405 [details]
> WIP
> 
> WIP - not for review

You can't tell me what to do!



I wonder if we can generate these from argparse somehow :)
Comment 5 Dean Jackson 2019-04-15 09:55:34 PDT
(In reply to Tim Horton from comment #4)
> (In reply to Dean Jackson from comment #2)
> > Comment on attachment 367405 [details]
> > WIP
> > 
> > WIP - not for review
> 
> You can't tell me what to do!
> 
> 
> 
> I wonder if we can generate these from argparse somehow :)

I thought about that.

I also wondered if we could parse the output of "command -h" and "help subcommand"