mirror of https://github.com/docker/compose.git
Merge pull request #878 from gtardif/remove_obsolete_hidden_json_flag
Remove obsolete flag `docker context ls --json` (that was marked hidden)
This commit is contained in:
commit
2121cc5ca6
|
@ -57,9 +57,7 @@ func listCommand() *cobra.Command {
|
|||
},
|
||||
}
|
||||
cmd.Flags().BoolVarP(&opts.quiet, "quiet", "q", false, "Only show context names")
|
||||
cmd.Flags().BoolVar(&opts.json, "json", false, "Format output as JSON")
|
||||
cmd.Flags().StringVar(&opts.format, "format", "", "Format the output. Values: [pretty | json]. (Default: pretty)")
|
||||
_ = cmd.Flags().MarkHidden("json")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
|
|
@ -82,9 +82,6 @@ func TestContextDefault(t *testing.T) {
|
|||
res = c.RunDockerCmd("context", "ls", "--format", "json")
|
||||
golden.Assert(t, res.Stdout(), GoldenFile("ls-out-json"))
|
||||
|
||||
res = c.RunDockerCmd("context", "ls", "--json")
|
||||
golden.Assert(t, res.Stdout(), GoldenFile("ls-out-json"))
|
||||
|
||||
res = c.RunDockerCmd("context", "ls", "--format", "{{ json . }}")
|
||||
golden.Assert(t, res.Stdout(), GoldenFile("ls-out-legacy-json"))
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue