Merge pull request #2580 from dominikbraun/2565-remove-image-images-alias

Remove 'images' alias from 'image ls' command
This commit is contained in:
Sebastiaan van Stijn
2020-06-16 00:09:41 +02:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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
}
-1
View File
@@ -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"))
}