From b557e37a49627b40ca924488614ab3d1f70869ad Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 31 Mar 2025 19:12:01 +0200 Subject: [PATCH] cli/command/image: un-export RunSave 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/save.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/image/save.go b/cli/command/image/save.go index 75e946c2d7..813052278c 100644 --- a/cli/command/image/save.go +++ b/cli/command/image/save.go @@ -29,7 +29,7 @@ func NewSaveCommand(dockerCli command.Cli) *cobra.Command { Args: cli.RequiresMinArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts.images = args - return RunSave(cmd.Context(), dockerCli, opts) + return runSave(cmd.Context(), dockerCli, opts) }, Annotations: map[string]string{ "aliases": "docker image save, docker save", @@ -47,8 +47,8 @@ func NewSaveCommand(dockerCli command.Cli) *cobra.Command { return cmd } -// RunSave performs a save against the engine based on the specified options -func RunSave(ctx context.Context, dockerCli command.Cli, opts saveOptions) error { +// runSave performs a save against the engine based on the specified options +func runSave(ctx context.Context, dockerCli command.Cli, opts saveOptions) error { if opts.output == "" && dockerCli.Out().IsTerminal() { return errors.New("cowardly refusing to save to a terminal. Use the -o flag or redirect") }