Skip to content

Commit 009a239

Browse files
committed
remove convert alias from config command
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
1 parent 3059574 commit 009a239

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

cmd/compose/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ func configCommand(p *ProjectOptions, dockerCli command.Cli) *cobra.Command {
8585
ProjectOptions: p,
8686
}
8787
cmd := &cobra.Command{
88-
Aliases: []string{"convert"}, // for backward compatibility with Cloud integrations
89-
Use: "config [OPTIONS] [SERVICE...]",
90-
Short: "Parse, resolve and render compose file in canonical format",
88+
Use: "config [OPTIONS] [SERVICE...]",
89+
Short: "Parse, resolve and render compose file in canonical format",
9190
PreRunE: Adapt(func(ctx context.Context, args []string) error {
9291
if opts.quiet {
9392
devnull, err := os.Open(os.DevNull)

docs/reference/compose_config.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
It merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
66
the canonical format.
77

8-
### Aliases
9-
10-
`docker compose config`, `docker compose convert`
11-
128
### Options
139

1410
| Name | Type | Default | Description |

docs/reference/docker_compose_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
command: docker compose config
2-
aliases: docker compose config, docker compose convert
32
short: Parse, resolve and render compose file in canonical format
43
long: |-
54
`docker compose config` renders the actual data model to be applied on the Docker Engine.

pkg/e2e/compose_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func TestConfig(t *testing.T) {
242242
assert.NilError(t, err)
243243

244244
t.Run("up", func(t *testing.T) {
245-
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose.yaml", "-p", projectName, "convert")
245+
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose.yaml", "-p", projectName, "config")
246246
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
247247
services:
248248
nginx:
@@ -266,7 +266,7 @@ func TestConfigInterpolate(t *testing.T) {
266266
assert.NilError(t, err)
267267

268268
t.Run("convert", func(t *testing.T) {
269-
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose-interpolate.yaml", "-p", projectName, "convert", "--no-interpolate")
269+
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose-interpolate.yaml", "-p", projectName, "config", "--no-interpolate")
270270
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
271271
networks:
272272
default:

0 commit comments

Comments
 (0)