From 70915196cb84204e3e4d8aa249a86b09e8335b63 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 1 Sep 2025 10:27:34 +0200 Subject: [PATCH] cli/command/completion: remove deprecated NoComplete This function was an exact duplicate of [cobra.NoFileCompletions], and was deprecated in 2827d037baee02889bc9a926755ddc6e39c00935. [cobra.NoFileCompletions]: https://pkg.go.dev/github.com/spf13/cobra@v1.9.1#NoFileCompletions Signed-off-by: Sebastiaan van Stijn --- cli/command/completion/functions.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cli/command/completion/functions.go b/cli/command/completion/functions.go index 3da2bc7c96..c1bd8e78d2 100644 --- a/cli/command/completion/functions.go +++ b/cli/command/completion/functions.go @@ -138,13 +138,6 @@ func FileNames(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCom return nil, cobra.ShellCompDirectiveDefault } -// NoComplete is used for commands where there's no relevant completion. -// -// Deprecated: use [cobra.NoFileCompletions]. This function will be removed in the next release. -func NoComplete(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { - return nil, cobra.ShellCompDirectiveNoFileComp -} - var commonPlatforms = []string{ "linux/386", "linux/amd64",