cli/command/secret: fix completion to complete names, not IDs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-09-10 11:45:21 +02:00
parent d67dad3fb4
commit 924dd4710b
+1 -1
View File
@@ -44,7 +44,7 @@ func completeNames(dockerCLI completion.APIClientProvider) cobra.CompletionFunc
}
var names []string
for _, secret := range list {
names = append(names, secret.ID)
names = append(names, secret.Spec.Name)
}
return names, cobra.ShellCompDirectiveNoFileComp
}