Extend Go completions and revamp zsh comp (#1070) (#1070)

Replace the current Zsh completion with a Zsh completion solution based
on Go completions. This allows to support custom completions (based
on Go completions), but also to standardize the behavior of completion
across all shells.

Also, add support to Go completions for the bash completion annotations:
  BashCompFilenameExt (including Command.MarkFlagFilename() family)
                       - still supported by zsh
  BashCompSubdirsInDir - now supported by zsh
  BashCompOneRequiredFlag (including Command.MarkFlagRequired() family)
                       - now supported by zsh and fish

Finally, remove the suggestin of the = form of flag completion.
The = form is supported, but it will not be suggested to avoid having
duplicated suggestions.
This commit is contained in:
Marc Khouzam
2020-06-29 15:52:14 -04:00
committed by GitHub
parent 04318720db
commit 2c5a0d300f
13 changed files with 2265 additions and 1255 deletions

File diff suppressed because it is too large Load Diff