cli/command/stack: remove deprecated io/ioutil

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-02-25 14:31:31 +01:00
parent d1f26de646
commit d59330f40d
6 changed files with 15 additions and 16 deletions

View File

@ -1,7 +1,7 @@
package stack
import (
"io/ioutil"
"io"
"testing"
"github.com/docker/cli/internal/test"
@ -49,7 +49,7 @@ func TestListErrors(t *testing.T) {
serviceListFunc: tc.serviceListFunc,
}))
cmd.SetArgs(tc.args)
cmd.SetOut(ioutil.Discard)
cmd.SetOut(io.Discard)
for key, value := range tc.flags {
cmd.Flags().Set(key, value)
}