Skip to content

Commit 7091519

Browse files
committed
cli/command/completion: remove deprecated NoComplete
This function was an exact duplicate of [cobra.NoFileCompletions], and was deprecated in 2827d03. [cobra.NoFileCompletions]: https://pkg.go.dev/github.com/spf13/[email protected]#NoFileCompletions Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent ba21666 commit 7091519

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cli/command/completion/functions.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,6 @@ func FileNames(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCom
138138
return nil, cobra.ShellCompDirectiveDefault
139139
}
140140

141-
// NoComplete is used for commands where there's no relevant completion.
142-
//
143-
// Deprecated: use [cobra.NoFileCompletions]. This function will be removed in the next release.
144-
func NoComplete(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
145-
return nil, cobra.ShellCompDirectiveNoFileComp
146-
}
147-
148141
var commonPlatforms = []string{
149142
"linux/386",
150143
"linux/amd64",

0 commit comments

Comments
 (0)