Skip to content

Commit 7d0645c

Browse files
author
Ian Campbell
committed
Use command.Cli instead of command.DockerCli
The linter is complaining: cmd/docker/docker.go:72:23:warning: dockerCli can be github.com/docker/cli/cli/command.Cli (interfacer) Unclear precisely which change in the preceeding commits caused it to notice this possibility. Signed-off-by: Ian Campbell <[email protected]>
1 parent 40a6cf7 commit 7d0645c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/docker/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func newDockerCommand(dockerCli *command.DockerCli) *cli.TopLevelCommand {
6969
return cli.NewTopLevelCommand(cmd, dockerCli, opts, flags)
7070
}
7171

72-
func setFlagErrorFunc(dockerCli *command.DockerCli, cmd *cobra.Command) {
72+
func setFlagErrorFunc(dockerCli command.Cli, cmd *cobra.Command) {
7373
// When invoking `docker stack --nonsense`, we need to make sure FlagErrorFunc return appropriate
7474
// output if the feature is not supported.
7575
// As above cli.SetupRootCommand(cmd) have already setup the FlagErrorFunc, we will add a pre-check before the FlagErrorFunc

0 commit comments

Comments
 (0)