mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Merge pull request #1937 from milas/cli-service-order
Print services in dependency order
This commit is contained in:
commit
d993c47db6
@ -27,6 +27,7 @@ import (
|
|||||||
|
|
||||||
"github.com/cnabio/cnab-to-oci/remotes"
|
"github.com/cnabio/cnab-to-oci/remotes"
|
||||||
"github.com/compose-spec/compose-go/cli"
|
"github.com/compose-spec/compose-go/cli"
|
||||||
|
"github.com/compose-spec/compose-go/types"
|
||||||
"github.com/distribution/distribution/v3/reference"
|
"github.com/distribution/distribution/v3/reference"
|
||||||
cliconfig "github.com/docker/cli/cli/config"
|
cliconfig "github.com/docker/cli/cli/config"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
@ -153,10 +154,10 @@ func runServices(opts convertOptions) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, s := range project.Services {
|
return project.WithServices(project.ServiceNames(), func(s types.ServiceConfig) error {
|
||||||
fmt.Println(s.Name)
|
fmt.Println(s.Name)
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func runVolumes(opts convertOptions) error {
|
func runVolumes(opts convertOptions) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user