Create 'completion' command automatically (#1192)

Make it easier for programs to provide shell completion by creating
the 'completion' command automatically.

If a 'completion' command is already provided by the program, Cobra
will use that one instead.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This commit is contained in:
Marc Khouzam
2021-02-15 12:47:01 -05:00
committed by GitHub
parent ded486a867
commit b312f0a8ef
4 changed files with 406 additions and 3 deletions

2160
completions_test.go Normal file

File diff suppressed because it is too large Load Diff