File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -14,24 +14,10 @@ import (
1414 "github.com/docker/cli/cli/streams"
1515 "github.com/docker/cli/internal/prompt"
1616 "github.com/moby/moby/api/types/filters"
17- "github.com/moby/sys/atomicwriter"
1817 "github.com/pkg/errors"
1918 "github.com/spf13/pflag"
2019)
2120
22- // CopyToFile writes the content of the reader to the specified file
23- //
24- // Deprecated: use [atomicwriter.New].
25- func CopyToFile (outfile string , r io.Reader ) error {
26- writer , err := atomicwriter .New (outfile , 0o600 )
27- if err != nil {
28- return err
29- }
30- defer writer .Close ()
31- _ , err = io .Copy (writer , r )
32- return err
33- }
34-
3521const ErrPromptTerminated = prompt .ErrTerminated
3622
3723// DisableInputEcho disables input echo on the provided streams.In.
You can’t perform that action at this time.
0 commit comments