|
6 | 6 | "github.com/ContainX/depcon/pkg/envsubst" |
7 | 7 | "github.com/docker/distribution/context" |
8 | 8 | "github.com/docker/libcompose/docker" |
| 9 | + "github.com/docker/libcompose/docker/ctx" |
9 | 10 | "github.com/docker/libcompose/project" |
10 | 11 | "github.com/docker/libcompose/project/options" |
11 | 12 | "io/ioutil" |
@@ -96,8 +97,8 @@ func (c *ComposeWrapper) Port(index int, proto, service, port string) error { |
96 | 97 | } |
97 | 98 |
|
98 | 99 | func (c *ComposeWrapper) PS(quiet bool) error { |
99 | | - if allInfo, err := c.project.Ps(context.Background(), quiet); err == nil { |
100 | | - os.Stdout.WriteString(allInfo.String(!quiet)) |
| 100 | + if allInfo, err := c.project.Ps(context.Background()); err == nil { |
| 101 | + os.Stdout.WriteString(allInfo.String([]string{"Name", "Command", "State", "Ports"}, !quiet)) |
101 | 102 | } |
102 | 103 | return nil |
103 | 104 | } |
@@ -125,8 +126,7 @@ func (c *ComposeWrapper) createDockerContext() (project.APIProject, error) { |
125 | 126 | } |
126 | 127 | c.context.ComposeFile = file.Name() |
127 | 128 | } |
128 | | - |
129 | | - return docker.NewProject(&docker.Context{ |
| 129 | + return docker.NewProject(&ctx.Context{ |
130 | 130 | Context: project.Context{ |
131 | 131 | ComposeFiles: strings.Split(c.context.ComposeFile, ","), |
132 | 132 | ProjectName: c.context.ProjectName, |
|
0 commit comments