Merge pull request #1150 from gtardif/refacto_folders

Refacto folders
This commit is contained in:
Nicolas De loof 2021-01-15 19:25:16 +01:00 committed by GitHub
commit 54020db517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
170 changed files with 236 additions and 363 deletions

View File

@ -38,9 +38,9 @@ import (
"github.com/docker/compose-cli/aci/login"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/containers"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/api/progress"
)
func createACIContainers(ctx context.Context, aciContext store.AciContext, groupDefinition containerinstance.ContainerGroup) error {

View File

@ -26,15 +26,16 @@ import (
"github.com/docker/compose-cli/aci/convert"
"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/containers"
"github.com/docker/compose-cli/api/resources"
"github.com/docker/compose-cli/api/secrets"
"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"
"github.com/docker/compose-cli/api/cloud"
apicontext "github.com/docker/compose-cli/api/context"
"github.com/docker/compose-cli/api/context/store"
)
const (

View File

@ -27,8 +27,8 @@ import (
"github.com/docker/compose-cli/aci/convert"
"github.com/docker/compose-cli/aci/login"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/utils/formatter"
)

View File

@ -32,8 +32,8 @@ import (
"github.com/docker/compose-cli/aci/convert"
"github.com/docker/compose-cli/aci/login"
"github.com/docker/compose-cli/api/containers"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
)
type aciContainerService struct {

View File

@ -27,9 +27,9 @@ import (
"github.com/hashicorp/go-uuid"
"github.com/pkg/errors"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/prompt"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/utils/prompt"
)
// ContextParams options for creating ACI context

View File

@ -28,7 +28,7 @@ import (
"gotest.tools/v3/assert"
"gotest.tools/v3/assert/cmp"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/context/store"
)
type contextMocks struct {

View File

@ -33,7 +33,7 @@ import (
"github.com/docker/compose-cli/aci/login"
"github.com/docker/compose-cli/api/compose"
"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"
)

View File

@ -30,7 +30,7 @@ import (
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/api/containers"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/context/store"
)
var (

View File

@ -30,7 +30,7 @@ import (
"github.com/compose-spec/compose-go/types"
"github.com/docker/compose-cli/aci/login"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
const (

View File

@ -26,7 +26,7 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/pkg/errors"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/internal"
)

View File

@ -33,7 +33,7 @@ import (
"github.com/pkg/errors"
"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

View File

@ -22,7 +22,7 @@ import (
"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

View File

@ -23,8 +23,8 @@ import (
"github.com/hashicorp/go-multierror"
"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/context/store"
)
type aciResourceService struct {

View File

@ -29,10 +29,10 @@ import (
"github.com/Azure/go-autorest/autorest/to"
"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/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/progress"
)
type aciVolumeService struct {

View File

@ -23,13 +23,13 @@ import (
"github.com/sirupsen/logrus"
"github.com/docker/compose-cli/api/cloud"
"github.com/docker/compose-cli/api/compose"
"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/secrets"
"github.com/docker/compose-cli/api/volumes"
"github.com/docker/compose-cli/context/cloud"
"github.com/docker/compose-cli/errdefs"
)
var (

View File

@ -19,15 +19,15 @@ package client
import (
"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/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/secrets"
"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

View File

@ -20,7 +20,7 @@ import (
"context"
"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"
)

View File

@ -20,7 +20,7 @@ import (
"context"
"github.com/docker/compose-cli/api/containers"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
type containerService struct {

View File

@ -19,8 +19,8 @@ package client
import (
"context"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/api/resources"
"github.com/docker/compose-cli/errdefs"
)
type resourceService struct {

View File

@ -19,8 +19,8 @@ package client
import (
"context"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/api/secrets"
"github.com/docker/compose-cli/errdefs"
)
type secretsService struct {

View File

@ -19,8 +19,8 @@ package client
import (
"context"
"github.com/docker/compose-cli/api/errdefs"
"github.com/docker/compose-cli/api/volumes"
"github.com/docker/compose-cli/errdefs"
)
type volumeService struct {

View File

@ -19,7 +19,7 @@ package cloud
import (
"context"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
// Service cloud specific services

View File

@ -25,7 +25,7 @@ import (
"github.com/pkg/errors"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/context/store"
)
type dirKey struct{}

View File

@ -23,7 +23,7 @@ import (
"github.com/compose-spec/compose-go/types"
specs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/utils"
)
const (
@ -102,7 +102,7 @@ type ContainerConfig struct {
// Volumes to be mounted
Volumes []string
// Memlimit
MemLimit formatter.MemBytes
MemLimit utils.MemBytes
// CPUlimit
CPULimit float64
// Environment variables

View File

@ -28,7 +28,7 @@ import (
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
const (

View File

@ -25,7 +25,7 @@ import (
"gotest.tools/v3/assert"
"gotest.tools/v3/assert/cmp"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
func testStore(t *testing.T) Store {

View File

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/progress"
)
type buildOptions struct {

View File

@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/context/store"
)
type composeOptions struct {

View File

@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/progress"
)
func downCommand() *cobra.Command {

View File

@ -27,7 +27,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
func listCommand() *cobra.Command {

View File

@ -24,7 +24,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
func logsCommand() *cobra.Command {

View File

@ -27,7 +27,7 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
func psCommand() *cobra.Command {

View File

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/progress"
)
type pullOptions struct {

View File

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/progress"
)
type pushOptions struct {

View File

@ -25,7 +25,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/progress"
)
type runOptions struct {

View File

@ -24,9 +24,9 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/progress"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/progress"
"github.com/docker/compose-cli/cli/formatter"
"github.com/compose-spec/compose-go/cli"
"github.com/compose-spec/compose-go/types"

View File

@ -23,8 +23,8 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/cli/mobycli"
"github.com/docker/compose-cli/context/store"
)
type descriptionCreateOpts struct {

View File

@ -24,8 +24,8 @@ import (
"github.com/docker/compose-cli/aci"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
)
func init() {

View File

@ -23,12 +23,13 @@ import (
"os"
"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/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() {

View File

@ -26,10 +26,10 @@ import (
"github.com/pkg/errors"
"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"
apicontext "github.com/docker/compose-cli/context"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/formatter"
)
type lsOpts struct {

View File

@ -24,9 +24,9 @@ import (
"github.com/hashicorp/go-multierror"
"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"
apicontext "github.com/docker/compose-cli/context"
"github.com/docker/compose-cli/context/store"
)
type removeOpts struct {

View File

@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra"
apicontext "github.com/docker/compose-cli/context"
"github.com/docker/compose-cli/context/store"
apicontext "github.com/docker/compose-cli/api/context"
"github.com/docker/compose-cli/api/context/store"
)
func showCommand() *cobra.Command {

View File

@ -20,9 +20,9 @@ import (
"github.com/pkg/errors"
"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/context/store"
"github.com/docker/compose-cli/errdefs"
)
func updateCommand() *cobra.Command {

View File

@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/config"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/api/context/store"
)
func useCommand() *cobra.Command {

View File

@ -27,7 +27,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/containers"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
// InspectCommand inspects into containers

View File

@ -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")
}

View File

@ -25,8 +25,8 @@ import (
"github.com/spf13/cobra"
"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/errdefs"
)
type killOpts struct {

View File

@ -24,9 +24,9 @@ import (
"github.com/spf13/cobra"
"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/mobycli"
"github.com/docker/compose-cli/errdefs"
)
// Command returns the login command

View File

@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
"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

View File

@ -28,7 +28,7 @@ import (
"github.com/docker/compose-cli/api/client"
"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"
)

View File

@ -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")
}

View File

@ -26,8 +26,8 @@ import (
"github.com/docker/compose-cli/api/client"
"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/errdefs"
)
type rmOpts struct {

View File

@ -28,9 +28,9 @@ import (
"github.com/docker/compose-cli/api/client"
"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/context/store"
"github.com/docker/compose-cli/progress"
)
// Command runs a container

View File

@ -26,7 +26,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/secrets"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
// SecretCommand manage secrets

View File

@ -23,13 +23,13 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
composev1 "github.com/docker/compose-cli/protos/compose/v1"
containersv1 "github.com/docker/compose-cli/protos/containers/v1"
contextsv1 "github.com/docker/compose-cli/protos/contexts/v1"
streamsv1 "github.com/docker/compose-cli/protos/streams/v1"
volumesv1 "github.com/docker/compose-cli/protos/volumes/v1"
"github.com/docker/compose-cli/server"
"github.com/docker/compose-cli/server/proxy"
"github.com/docker/compose-cli/cli/server"
composev1 "github.com/docker/compose-cli/cli/server/protos/compose/v1"
containersv1 "github.com/docker/compose-cli/cli/server/protos/containers/v1"
contextsv1 "github.com/docker/compose-cli/cli/server/protos/contexts/v1"
streamsv1 "github.com/docker/compose-cli/cli/server/protos/streams/v1"
volumesv1 "github.com/docker/compose-cli/cli/server/protos/volumes/v1"
"github.com/docker/compose-cli/cli/server/proxy"
)
type serveOpts struct {

View File

@ -25,8 +25,8 @@ import (
"github.com/spf13/cobra"
"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/errdefs"
)
// StartCommand starts containers

View File

@ -25,8 +25,8 @@ import (
"github.com/spf13/cobra"
"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/errdefs"
)
type stopOpts struct {

View File

@ -1,14 +0,0 @@
{
"ID": "id",
"Status": "",
"Image": "nginx",
"HostConfig": {
"RestartPolicy": "none",
"CPUReservation": 0,
"CPULimit": 0,
"MemoryReservation": 0,
"MemoryLimit": 0,
"AutoRemove": false
},
"Platform": "Linux"
}

View File

@ -1,2 +0,0 @@
id
1234

View File

@ -1,3 +0,0 @@
CONTAINER ID IMAGE COMMAND STATUS PORTS
id nginx
1234 alpine

View File

@ -24,8 +24,8 @@ import (
"github.com/spf13/cobra"
"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/formatter"
"github.com/docker/compose-cli/internal"
)

View File

@ -22,11 +22,11 @@ import (
"github.com/docker/compose-cli/aci"
"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/context/store"
formatter2 "github.com/docker/compose-cli/cli/formatter"
"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/spf13/cobra"

View File

@ -25,7 +25,7 @@ import (
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/volumes"
"github.com/docker/compose-cli/formatter"
"github.com/docker/compose-cli/cli/formatter"
)
type listVolumeOpts struct {

View File

@ -22,7 +22,7 @@ import (
"github.com/spf13/pflag"
"github.com/docker/compose-cli/config"
"github.com/docker/compose-cli/api/config"
)
// ConfigFlags are the global CLI flags

View File

@ -24,7 +24,7 @@ import (
"github.com/pkg/errors"
"github.com/docker/compose-cli/errdefs"
"github.com/docker/compose-cli/api/errdefs"
)
// Print prints formatted lists in different formats

View File

@ -32,6 +32,10 @@ import (
"github.com/sirupsen/logrus"
"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/compose"
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/run"
"github.com/docker/compose-cli/cli/cmd/volume"
"github.com/docker/compose-cli/cli/metrics"
"github.com/docker/compose-cli/cli/mobycli"
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
_ "github.com/docker/compose-cli/aci"

View File

@ -24,11 +24,11 @@ import (
"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/context"
"github.com/docker/compose-cli/cli/cmd/login"
"github.com/docker/compose-cli/cli/cmd/run"
"github.com/docker/compose-cli/config"
)
var contextSetConfig = []byte(`{

View File

@ -26,10 +26,10 @@ import (
"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"
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}

View File

@ -21,7 +21,7 @@ import (
"gotest.tools/v3/assert"
"github.com/docker/compose-cli/context/store"
"github.com/docker/compose-cli/api/context/store"
)
func TestDelegateContextTypeToMoby(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show More