From 7223f0f926caac6f80f77f53014aa256b7ee510e Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Sun, 16 Feb 2025 18:40:55 +0100 Subject: [PATCH] fix: completion helper retro-compatibility Signed-off-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> --- completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions.go b/completions.go index fd30e76c..a366304d 100644 --- a/completions.go +++ b/completions.go @@ -129,7 +129,7 @@ type CompletionOptions struct { type Completion = string // CompletionFunc is a function that provides completion results. -type CompletionFunc func(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) +type CompletionFunc = func(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) // CompletionWithDesc returns a [Completion] with a description by using the TAB delimited format. func CompletionWithDesc(choice string, description string) Completion {