Files
LazyPM/internal/commands/util.go
2026-02-28 10:44:41 +01:00

11 lines
405 B
Go

package commands
import "github.com/spf13/cobra"
// completionFunc returns a function that provides shell completion for the given options.
func CompletionFunc(options []string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) {
return func(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
return options, cobra.ShellCompDirectiveDefault
}
}