summaryrefslogtreecommitdiff
path: root/cmd/podman/image.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-28 10:41:01 -0800
committerGitHub <noreply@github.com>2019-02-28 10:41:01 -0800
commit4a109a71996e99c9a95b639bbbee1c5e30450c97 (patch)
treefe250e7ef427ece689847c5c88094a9f3069308e /cmd/podman/image.go
parent2e463b7720769d85dcdae516cad96c57e96b7464 (diff)
parent3fa1fdf7117dbe4a114ddf9c4e7155cbb9ce2fed (diff)
downloadpodman-4a109a71996e99c9a95b639bbbee1c5e30450c97.tar.gz
podman-4a109a71996e99c9a95b639bbbee1c5e30450c97.tar.bz2
podman-4a109a71996e99c9a95b639bbbee1c5e30450c97.zip
Merge pull request #2480 from baude/clifixups
fix up a number of misplace commands
Diffstat (limited to 'cmd/podman/image.go')
-rw-r--r--cmd/podman/image.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/podman/image.go b/cmd/podman/image.go
index aaa1866c4..b5c1c3ccf 100644
--- a/cmd/podman/image.go
+++ b/cmd/podman/image.go
@@ -15,6 +15,7 @@ var (
},
}
_imagesSubCommand = _imagesCommand
+ _rmSubCommand = _rmiCommand
)
//imageSubCommands are implemented both in local and remote clients
@@ -28,7 +29,6 @@ var imageSubCommands = []*cobra.Command{
_pruneImagesCommand,
_pullCommand,
_pushCommand,
- _rmiCommand,
_saveCommand,
_tagCommand,
}
@@ -38,7 +38,12 @@ func init() {
imageCommand.AddCommand(imageSubCommands...)
imageCommand.AddCommand(getImageSubCommands()...)
- _imagesSubCommand.Aliases = []string{"ls", "list"}
+ // Setup of "images" to appear as "list"
+ _imagesSubCommand.Use = "list"
+ _imagesSubCommand.Aliases = []string{"ls"}
imageCommand.AddCommand(&_imagesSubCommand)
+ // Setup of "rmi" to appears as "rm"
+ _rmSubCommand.Use = "rm"
+ imageCommand.AddCommand(&_rmSubCommand)
}