cli: set default completion
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>pull/1727/head
parent
1e149bb84f
commit
8a02cf8717
@ -0,0 +1,12 @@
|
|||||||
|
package completion
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ValidArgsFn defines a completion func to be returned to fetch completion options
|
||||||
|
type ValidArgsFn func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
|
||||||
|
|
||||||
|
func Disable(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||||
|
return nil, cobra.ShellCompDirectiveNoSpace
|
||||||
|
}
|
Loading…
Reference in New Issue