mirror of https://github.com/docker/cli.git
Remove 'images' alias from 'image ls' command
Signed-off-by: Dominik Braun <Dominik.Braun@nbsp.de> Remove assertion for 'images' alias of 'image ls' Signed-off-by: Dominik Braun <Dominik.Braun@nbsp.de>
This commit is contained in:
parent
af2c31c4a7
commit
1570025f00
|
@ -52,7 +52,7 @@ func NewImagesCommand(dockerCli command.Cli) *cobra.Command {
|
|||
|
||||
func newListCommand(dockerCli command.Cli) *cobra.Command {
|
||||
cmd := *NewImagesCommand(dockerCli)
|
||||
cmd.Aliases = []string{"images", "list"}
|
||||
cmd.Aliases = []string{"list"}
|
||||
cmd.Use = "ls [OPTIONS] [REPOSITORY[:TAG]]"
|
||||
return &cmd
|
||||
}
|
||||
|
|
|
@ -92,7 +92,6 @@ func TestNewImagesCommandSuccess(t *testing.T) {
|
|||
|
||||
func TestNewListCommandAlias(t *testing.T) {
|
||||
cmd := newListCommand(test.NewFakeCli(&fakeClient{}))
|
||||
assert.Check(t, cmd.HasAlias("images"))
|
||||
assert.Check(t, cmd.HasAlias("list"))
|
||||
assert.Check(t, !cmd.HasAlias("other"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue