mirror of https://github.com/docker/compose.git
remove convert alias from config command
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
3059574288
commit
009a239510
|
@ -85,9 +85,8 @@ func configCommand(p *ProjectOptions, dockerCli command.Cli) *cobra.Command {
|
||||||
ProjectOptions: p,
|
ProjectOptions: p,
|
||||||
}
|
}
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Aliases: []string{"convert"}, // for backward compatibility with Cloud integrations
|
Use: "config [OPTIONS] [SERVICE...]",
|
||||||
Use: "config [OPTIONS] [SERVICE...]",
|
Short: "Parse, resolve and render compose file in canonical format",
|
||||||
Short: "Parse, resolve and render compose file in canonical format",
|
|
||||||
PreRunE: Adapt(func(ctx context.Context, args []string) error {
|
PreRunE: Adapt(func(ctx context.Context, args []string) error {
|
||||||
if opts.quiet {
|
if opts.quiet {
|
||||||
devnull, err := os.Open(os.DevNull)
|
devnull, err := os.Open(os.DevNull)
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
It merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
|
It merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
|
||||||
the canonical format.
|
the canonical format.
|
||||||
|
|
||||||
### Aliases
|
|
||||||
|
|
||||||
`docker compose config`, `docker compose convert`
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
command: docker compose config
|
command: docker compose config
|
||||||
aliases: docker compose config, docker compose convert
|
|
||||||
short: Parse, resolve and render compose file in canonical format
|
short: Parse, resolve and render compose file in canonical format
|
||||||
long: |-
|
long: |-
|
||||||
`docker compose config` renders the actual data model to be applied on the Docker Engine.
|
`docker compose config` renders the actual data model to be applied on the Docker Engine.
|
||||||
|
|
|
@ -242,7 +242,7 @@ func TestConfig(t *testing.T) {
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
||||||
t.Run("up", func(t *testing.T) {
|
t.Run("up", func(t *testing.T) {
|
||||||
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose.yaml", "-p", projectName, "convert")
|
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose.yaml", "-p", projectName, "config")
|
||||||
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
|
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
@ -266,7 +266,7 @@ func TestConfigInterpolate(t *testing.T) {
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
||||||
t.Run("convert", func(t *testing.T) {
|
t.Run("convert", func(t *testing.T) {
|
||||||
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose-interpolate.yaml", "-p", projectName, "convert", "--no-interpolate")
|
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose-interpolate.yaml", "-p", projectName, "config", "--no-interpolate")
|
||||||
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
|
res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue