fix CompletionFunc implementation (#2234)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The new type CompletionFunc could lead to a regression. This commit make the new `CompletionFunc` type a type alias instead, in case projects using Cobra have created their own similar type. This commit also adds a test to ensure that the completion function remains backwards-compatible.
authored by ccoVeille · committed by GitHub · parent 5f9c408 · Browse files · 2 files+88 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Diff stats
2 files+88 added−2 removed
- other:+88 added−2 removed