From 9b2479dca70a7b367776e5a3e63922482a4add2b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 31 Mar 2025 19:19:23 +0200 Subject: [PATCH] cli/command/image: un-export RunPush This function was exported in e43c7920ea950b0c8f2004bce114e71f7f993854 for use of "docker app", which is now deprecated. The signature of this function also depended on a non-exported type so it could not be used externally. Make it internal again, as it was never designed to be exported. There are no known external consumers of this function. Signed-off-by: Sebastiaan van Stijn --- cli/command/image/push.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/image/push.go b/cli/command/image/push.go index dd1c32ba72..cdef02ca10 100644 --- a/cli/command/image/push.go +++ b/cli/command/image/push.go @@ -45,7 +45,7 @@ func NewPushCommand(dockerCli command.Cli) *cobra.Command { Args: cli.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts.remote = args[0] - return RunPush(cmd.Context(), dockerCli, opts) + return runPush(cmd.Context(), dockerCli, opts) }, Annotations: map[string]string{ "category-top": "6", @@ -73,8 +73,8 @@ Image index won't be pushed, meaning that other manifests, including attestation return cmd } -// RunPush performs a push against the engine based on the specified options -func RunPush(ctx context.Context, dockerCli command.Cli, opts pushOptions) error { +// runPush performs a push against the engine based on the specified options. +func runPush(ctx context.Context, dockerCli command.Cli, opts pushOptions) error { var platform *ocispec.Platform out := tui.NewOutput(dockerCli.Out()) if opts.platform != "" {