Skip to content

Commit fb36f7f

Browse files
committed
directly embed the orignal APIClient in the DryRunClient
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 3fac506 commit fb36f7f

File tree

3 files changed

+108
-649
lines changed

3 files changed

+108
-649
lines changed

cmd/compose/compose.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import (
2626
"strings"
2727
"syscall"
2828

29+
"github.com/docker/cli/cli/command"
30+
2931
"github.com/compose-spec/compose-go/cli"
3032
"github.com/compose-spec/compose-go/types"
3133
composegoutils "github.com/compose-spec/compose-go/utils"
@@ -243,7 +245,7 @@ func RunningAsStandalone() bool {
243245
}
244246

245247
// RootCommand returns the compose command with its child commands
246-
func RootCommand(streams api.Streams, backend api.Service) *cobra.Command { //nolint:gocyclo
248+
func RootCommand(streams command.Cli, backend api.Service) *cobra.Command { //nolint:gocyclo
247249
// filter out useless commandConn.CloseWrite warning message that can occur
248250
// when using a remote context that is unreachable: "commandConn.CloseWrite: commandconn: failed to wait: signal: killed"
249251
// https://github.com/docker/cli/blob/e1f24d3c93df6752d3c27c8d61d18260f141310c/cli/connhelper/commandconn/commandconn.go#L203-L215

0 commit comments

Comments
 (0)