SIGN IN SIGN UP
spf13 / cobra UNCLAIMED

A Commander for modern Go CLI interactions

0 0 138 Go

fix CompletionFunc implementation (#2234)

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.

Signed-off-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
C
ccoVeille committed
a97f9fd47b290016526c8af2dac0531fea5cd773
Parent: 5f9c408
Committed by GitHub <noreply@github.com> on 2/16/2025, 6:08:14 PM