Bug 196908 - Provide zsh completions for webkit-patch
Summary: Provide zsh completions for webkit-patch
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-14 14:07 PDT by Dean Jackson
Modified: 2019-06-16 20:51 PDT (History)
4 users (show)

See Also:


Attachments
WIP (2.14 KB, patch)
2019-04-14 14:10 PDT, Dean Jackson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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"