Skip to content

Commit 9a6cbbc

Browse files
authored
Merge pull request #6408 from thaJeztah/rm_NoComplete
cli/command/completion: remove deprecated NoComplete
2 parents ba21666 + 7091519 commit 9a6cbbc

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)