mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
commit
54020db517
@ -38,9 +38,9 @@ import (
|
|||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createACIContainers(ctx context.Context, aciContext store.AciContext, groupDefinition containerinstance.ContainerGroup) error {
|
func createACIContainers(ctx context.Context, aciContext store.AciContext, groupDefinition containerinstance.ContainerGroup) error {
|
||||||
|
@ -26,15 +26,16 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/aci/convert"
|
"github.com/docker/compose-cli/aci/convert"
|
||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
|
"github.com/docker/compose-cli/api/backend"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/api/resources"
|
"github.com/docker/compose-cli/api/resources"
|
||||||
"github.com/docker/compose-cli/api/secrets"
|
"github.com/docker/compose-cli/api/secrets"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/backend"
|
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
"github.com/docker/compose-cli/api/cloud"
|
||||||
"github.com/docker/compose-cli/context/cloud"
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
"github.com/docker/compose-cli/aci/convert"
|
"github.com/docker/compose-cli/aci/convert"
|
||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/utils/formatter"
|
"github.com/docker/compose-cli/utils/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ import (
|
|||||||
"github.com/docker/compose-cli/aci/convert"
|
"github.com/docker/compose-cli/aci/convert"
|
||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type aciContainerService struct {
|
type aciContainerService struct {
|
||||||
|
@ -27,9 +27,9 @@ import (
|
|||||||
"github.com/hashicorp/go-uuid"
|
"github.com/hashicorp/go-uuid"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/prompt"
|
"github.com/docker/compose-cli/utils/prompt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ContextParams options for creating ACI context
|
// ContextParams options for creating ACI context
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
"gotest.tools/v3/assert/cmp"
|
"gotest.tools/v3/assert/cmp"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type contextMocks struct {
|
type contextMocks struct {
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/utils/formatter"
|
"github.com/docker/compose-cli/utils/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
"github.com/compose-spec/compose-go/types"
|
"github.com/compose-spec/compose-go/types"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/internal"
|
"github.com/docker/compose-cli/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go login process, derived from code sample provided by MS at https://github.com/devigned/go-az-cli-stuff
|
//go login process, derived from code sample provided by MS at https://github.com/devigned/go-az-cli-stuff
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StorageLogin helper for Azure Storage Login
|
// StorageLogin helper for Azure Storage Login
|
||||||
|
@ -23,8 +23,8 @@ import (
|
|||||||
"github.com/hashicorp/go-multierror"
|
"github.com/hashicorp/go-multierror"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/aci/convert"
|
"github.com/docker/compose-cli/aci/convert"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/api/resources"
|
"github.com/docker/compose-cli/api/resources"
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type aciResourceService struct {
|
type aciResourceService struct {
|
||||||
|
@ -29,10 +29,10 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/aci/login"
|
"github.com/docker/compose-cli/aci/login"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
|
"github.com/docker/compose-cli/api/progress"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
"github.com/docker/compose-cli/progress"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type aciVolumeService struct {
|
type aciVolumeService struct {
|
||||||
|
@ -23,13 +23,13 @@ import (
|
|||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/cloud"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/api/resources"
|
"github.com/docker/compose-cli/api/resources"
|
||||||
"github.com/docker/compose-cli/api/secrets"
|
"github.com/docker/compose-cli/api/secrets"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/context/cloud"
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
@ -19,15 +19,15 @@ package client
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/backend"
|
||||||
|
"github.com/docker/compose-cli/api/cloud"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/api/resources"
|
"github.com/docker/compose-cli/api/resources"
|
||||||
"github.com/docker/compose-cli/api/secrets"
|
"github.com/docker/compose-cli/api/secrets"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/backend"
|
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
|
||||||
"github.com/docker/compose-cli/context/cloud"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// New returns a backend client associated with current context
|
// New returns a backend client associated with current context
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
|
|
||||||
"github.com/compose-spec/compose-go/types"
|
"github.com/compose-spec/compose-go/types"
|
||||||
)
|
)
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type containerService struct {
|
type containerService struct {
|
||||||
|
@ -19,8 +19,8 @@ package client
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/api/resources"
|
"github.com/docker/compose-cli/api/resources"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type resourceService struct {
|
type resourceService struct {
|
||||||
|
@ -19,8 +19,8 @@ package client
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/api/secrets"
|
"github.com/docker/compose-cli/api/secrets"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type secretsService struct {
|
type secretsService struct {
|
||||||
|
@ -19,8 +19,8 @@ package client
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type volumeService struct {
|
type volumeService struct {
|
||||||
|
@ -19,7 +19,7 @@ package cloud
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Service cloud specific services
|
// Service cloud specific services
|
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type dirKey struct{}
|
type dirKey struct{}
|
@ -23,7 +23,7 @@ import (
|
|||||||
"github.com/compose-spec/compose-go/types"
|
"github.com/compose-spec/compose-go/types"
|
||||||
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -102,7 +102,7 @@ type ContainerConfig struct {
|
|||||||
// Volumes to be mounted
|
// Volumes to be mounted
|
||||||
Volumes []string
|
Volumes []string
|
||||||
// Memlimit
|
// Memlimit
|
||||||
MemLimit formatter.MemBytes
|
MemLimit utils.MemBytes
|
||||||
// CPUlimit
|
// CPUlimit
|
||||||
CPULimit float64
|
CPULimit float64
|
||||||
// Environment variables
|
// Environment variables
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
@ -25,7 +25,7 @@ import (
|
|||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
"gotest.tools/v3/assert/cmp"
|
"gotest.tools/v3/assert/cmp"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testStore(t *testing.T) Store {
|
func testStore(t *testing.T) Store {
|
@ -23,7 +23,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
type buildOptions struct {
|
type buildOptions struct {
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type composeOptions struct {
|
type composeOptions struct {
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
func downCommand() *cobra.Command {
|
func downCommand() *cobra.Command {
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func listCommand() *cobra.Command {
|
func listCommand() *cobra.Command {
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func logsCommand() *cobra.Command {
|
func logsCommand() *cobra.Command {
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func psCommand() *cobra.Command {
|
func psCommand() *cobra.Command {
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pullOptions struct {
|
type pullOptions struct {
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pushOptions struct {
|
type pushOptions struct {
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
)
|
)
|
||||||
|
|
||||||
type runOptions struct {
|
type runOptions struct {
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/compose"
|
"github.com/docker/compose-cli/api/compose"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/api/progress"
|
||||||
"github.com/docker/compose-cli/progress"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
|
|
||||||
"github.com/compose-spec/compose-go/cli"
|
"github.com/compose-spec/compose-go/cli"
|
||||||
"github.com/compose-spec/compose-go/types"
|
"github.com/compose-spec/compose-go/types"
|
||||||
|
@ -23,8 +23,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type descriptionCreateOpts struct {
|
type descriptionCreateOpts struct {
|
||||||
|
@ -24,8 +24,8 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/aci"
|
"github.com/docker/compose-cli/aci"
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -23,12 +23,13 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/ecs"
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
|
"github.com/docker/compose-cli/ecs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -26,10 +26,10 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/formatter"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type lsOpts struct {
|
type lsOpts struct {
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
"github.com/hashicorp/go-multierror"
|
"github.com/hashicorp/go-multierror"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type removeOpts struct {
|
type removeOpts struct {
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func showCommand() *cobra.Command {
|
func showCommand() *cobra.Command {
|
||||||
|
@ -20,9 +20,9 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func updateCommand() *cobra.Command {
|
func updateCommand() *cobra.Command {
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/config"
|
"github.com/docker/compose-cli/api/config"
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func useCommand() *cobra.Command {
|
func useCommand() *cobra.Command {
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InspectCommand inspects into containers
|
// InspectCommand inspects into containers
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2020 Docker Compose CLI authors
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package cmd
|
|
||||||
|
|
||||||
import (
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"gotest.tools/v3/assert"
|
|
||||||
"gotest.tools/v3/golden"
|
|
||||||
|
|
||||||
_ "github.com/docker/compose-cli/example"
|
|
||||||
"github.com/docker/compose-cli/tests/framework"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestInspectId(t *testing.T) {
|
|
||||||
c := framework.NewTestCLI(t)
|
|
||||||
err := runInspect(c.Context(), "id")
|
|
||||||
assert.NilError(t, err)
|
|
||||||
golden.Assert(t, c.GetStdOut(), "inspect-out-id.golden")
|
|
||||||
}
|
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type killOpts struct {
|
type killOpts struct {
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/cmd/mobyflags"
|
"github.com/docker/compose-cli/cli/cmd/mobyflags"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Command returns the login command
|
// Command returns the login command
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AzureLogoutCommand returns the azure logout command
|
// AzureLogoutCommand returns the azure logout command
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
formatter2 "github.com/docker/compose-cli/formatter"
|
formatter2 "github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/utils/formatter"
|
"github.com/docker/compose-cli/utils/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2020 Docker Compose CLI authors
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package cmd
|
|
||||||
|
|
||||||
import (
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"gotest.tools/v3/assert"
|
|
||||||
"gotest.tools/v3/golden"
|
|
||||||
|
|
||||||
_ "github.com/docker/compose-cli/example"
|
|
||||||
"github.com/docker/compose-cli/tests/framework"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestPs(t *testing.T) {
|
|
||||||
c := framework.NewTestCLI(t)
|
|
||||||
opts := psOpts{
|
|
||||||
quiet: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
err := runPs(c.Context(), opts)
|
|
||||||
assert.NilError(t, err)
|
|
||||||
|
|
||||||
golden.Assert(t, c.GetStdOut(), "ps-out.golden")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestPsQuiet(t *testing.T) {
|
|
||||||
c := framework.NewTestCLI(t)
|
|
||||||
opts := psOpts{
|
|
||||||
quiet: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
err := runPs(c.Context(), opts)
|
|
||||||
assert.NilError(t, err)
|
|
||||||
|
|
||||||
golden.Assert(t, c.GetStdOut(), "ps-out-quiet.golden")
|
|
||||||
}
|
|
@ -26,8 +26,8 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type rmOpts struct {
|
type rmOpts struct {
|
||||||
|
@ -28,9 +28,9 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/containers"
|
"github.com/docker/compose-cli/api/containers"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/progress"
|
||||||
"github.com/docker/compose-cli/cli/options/run"
|
"github.com/docker/compose-cli/cli/options/run"
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/progress"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Command runs a container
|
// Command runs a container
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/secrets"
|
"github.com/docker/compose-cli/api/secrets"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SecretCommand manage secrets
|
// SecretCommand manage secrets
|
||||||
|
@ -23,13 +23,13 @@ import (
|
|||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
composev1 "github.com/docker/compose-cli/protos/compose/v1"
|
"github.com/docker/compose-cli/cli/server"
|
||||||
containersv1 "github.com/docker/compose-cli/protos/containers/v1"
|
composev1 "github.com/docker/compose-cli/cli/server/protos/compose/v1"
|
||||||
contextsv1 "github.com/docker/compose-cli/protos/contexts/v1"
|
containersv1 "github.com/docker/compose-cli/cli/server/protos/containers/v1"
|
||||||
streamsv1 "github.com/docker/compose-cli/protos/streams/v1"
|
contextsv1 "github.com/docker/compose-cli/cli/server/protos/contexts/v1"
|
||||||
volumesv1 "github.com/docker/compose-cli/protos/volumes/v1"
|
streamsv1 "github.com/docker/compose-cli/cli/server/protos/streams/v1"
|
||||||
"github.com/docker/compose-cli/server"
|
volumesv1 "github.com/docker/compose-cli/cli/server/protos/volumes/v1"
|
||||||
"github.com/docker/compose-cli/server/proxy"
|
"github.com/docker/compose-cli/cli/server/proxy"
|
||||||
)
|
)
|
||||||
|
|
||||||
type serveOpts struct {
|
type serveOpts struct {
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// StartCommand starts containers
|
// StartCommand starts containers
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type stopOpts struct {
|
type stopOpts struct {
|
||||||
|
14
cli/cmd/testdata/inspect-out-id.golden
vendored
14
cli/cmd/testdata/inspect-out-id.golden
vendored
@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"ID": "id",
|
|
||||||
"Status": "",
|
|
||||||
"Image": "nginx",
|
|
||||||
"HostConfig": {
|
|
||||||
"RestartPolicy": "none",
|
|
||||||
"CPUReservation": 0,
|
|
||||||
"CPULimit": 0,
|
|
||||||
"MemoryReservation": 0,
|
|
||||||
"MemoryLimit": 0,
|
|
||||||
"AutoRemove": false
|
|
||||||
},
|
|
||||||
"Platform": "Linux"
|
|
||||||
}
|
|
2
cli/cmd/testdata/ps-out-quiet.golden
vendored
2
cli/cmd/testdata/ps-out-quiet.golden
vendored
@ -1,2 +0,0 @@
|
|||||||
id
|
|
||||||
1234
|
|
3
cli/cmd/testdata/ps-out.golden
vendored
3
cli/cmd/testdata/ps-out.golden
vendored
@ -1,3 +0,0 @@
|
|||||||
CONTAINER ID IMAGE COMMAND STATUS PORTS
|
|
||||||
id nginx
|
|
||||||
1234 alpine
|
|
@ -24,8 +24,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/cli/cmd/mobyflags"
|
"github.com/docker/compose-cli/cli/cmd/mobyflags"
|
||||||
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
"github.com/docker/compose-cli/formatter"
|
|
||||||
"github.com/docker/compose-cli/internal"
|
"github.com/docker/compose-cli/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/aci"
|
"github.com/docker/compose-cli/aci"
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/progress"
|
||||||
"github.com/docker/compose-cli/cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/context/store"
|
formatter2 "github.com/docker/compose-cli/cli/formatter"
|
||||||
"github.com/docker/compose-cli/ecs"
|
"github.com/docker/compose-cli/ecs"
|
||||||
formatter2 "github.com/docker/compose-cli/formatter"
|
|
||||||
"github.com/docker/compose-cli/progress"
|
|
||||||
|
|
||||||
"github.com/hashicorp/go-multierror"
|
"github.com/hashicorp/go-multierror"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/compose-cli/api/client"
|
"github.com/docker/compose-cli/api/client"
|
||||||
"github.com/docker/compose-cli/api/volumes"
|
"github.com/docker/compose-cli/api/volumes"
|
||||||
"github.com/docker/compose-cli/formatter"
|
"github.com/docker/compose-cli/cli/formatter"
|
||||||
)
|
)
|
||||||
|
|
||||||
type listVolumeOpts struct {
|
type listVolumeOpts struct {
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/config"
|
"github.com/docker/compose-cli/api/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigFlags are the global CLI flags
|
// ConfigFlags are the global CLI flags
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Print prints formatted lists in different formats
|
// Print prints formatted lists in different formats
|
10
cli/main.go
10
cli/main.go
@ -32,6 +32,10 @@ import (
|
|||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/config"
|
||||||
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/api/errdefs"
|
||||||
"github.com/docker/compose-cli/cli/cmd"
|
"github.com/docker/compose-cli/cli/cmd"
|
||||||
"github.com/docker/compose-cli/cli/cmd/compose"
|
"github.com/docker/compose-cli/cli/cmd/compose"
|
||||||
contextcmd "github.com/docker/compose-cli/cli/cmd/context"
|
contextcmd "github.com/docker/compose-cli/cli/cmd/context"
|
||||||
@ -39,13 +43,9 @@ import (
|
|||||||
"github.com/docker/compose-cli/cli/cmd/logout"
|
"github.com/docker/compose-cli/cli/cmd/logout"
|
||||||
"github.com/docker/compose-cli/cli/cmd/run"
|
"github.com/docker/compose-cli/cli/cmd/run"
|
||||||
"github.com/docker/compose-cli/cli/cmd/volume"
|
"github.com/docker/compose-cli/cli/cmd/volume"
|
||||||
|
"github.com/docker/compose-cli/cli/metrics"
|
||||||
"github.com/docker/compose-cli/cli/mobycli"
|
"github.com/docker/compose-cli/cli/mobycli"
|
||||||
cliopts "github.com/docker/compose-cli/cli/options"
|
cliopts "github.com/docker/compose-cli/cli/options"
|
||||||
"github.com/docker/compose-cli/config"
|
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/errdefs"
|
|
||||||
"github.com/docker/compose-cli/metrics"
|
|
||||||
|
|
||||||
// Backend registrations
|
// Backend registrations
|
||||||
_ "github.com/docker/compose-cli/aci"
|
_ "github.com/docker/compose-cli/aci"
|
||||||
|
@ -24,11 +24,11 @@ import (
|
|||||||
|
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
|
|
||||||
|
"github.com/docker/compose-cli/api/config"
|
||||||
"github.com/docker/compose-cli/cli/cmd"
|
"github.com/docker/compose-cli/cli/cmd"
|
||||||
"github.com/docker/compose-cli/cli/cmd/context"
|
"github.com/docker/compose-cli/cli/cmd/context"
|
||||||
"github.com/docker/compose-cli/cli/cmd/login"
|
"github.com/docker/compose-cli/cli/cmd/login"
|
||||||
"github.com/docker/compose-cli/cli/cmd/run"
|
"github.com/docker/compose-cli/cli/cmd/run"
|
||||||
"github.com/docker/compose-cli/config"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var contextSetConfig = []byte(`{
|
var contextSetConfig = []byte(`{
|
||||||
|
@ -26,10 +26,10 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
apicontext "github.com/docker/compose-cli/api/context"
|
||||||
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
|
"github.com/docker/compose-cli/cli/metrics"
|
||||||
"github.com/docker/compose-cli/cli/mobycli/resolvepath"
|
"github.com/docker/compose-cli/cli/mobycli/resolvepath"
|
||||||
apicontext "github.com/docker/compose-cli/context"
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
|
||||||
"github.com/docker/compose-cli/metrics"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var delegatedContextTypes = []string{store.DefaultContextType}
|
var delegatedContextTypes = []string{store.DefaultContextType}
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
|
|
||||||
"github.com/docker/compose-cli/context/store"
|
"github.com/docker/compose-cli/api/context/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDelegateContextTypeToMoby(t *testing.T) {
|
func TestDelegateContextTypeToMoby(t *testing.T) {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user