From d30d61aa78f0b65b42f20b13a4397017eecb2f22 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 8 Oct 2024 15:36:14 +0200 Subject: [PATCH] image/history: add completion for --platform flag Signed-off-by: Sebastiaan van Stijn --- cli/command/image/history.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/image/history.go b/cli/command/image/history.go index e52243c3ff2f..d55f1635a319 100644 --- a/cli/command/image/history.go +++ b/cli/command/image/history.go @@ -51,6 +51,7 @@ func NewHistoryCommand(dockerCli command.Cli) *cobra.Command { flags.StringVar(&opts.platform, "platform", "", `Show history for the given platform. Formatted as "os[/arch[/variant]]" (e.g., "linux/amd64")`) _ = flags.SetAnnotation("platform", "version", []string{"1.48"}) + _ = cmd.RegisterFlagCompletionFunc("platform", completion.Platforms) return cmd }