Skip to content

Commit

Permalink
image/history: add completion for --platform flag
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 8, 2024
1 parent 794cd6a commit d30d61a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/command/image/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d30d61a

Please sign in to comment.