aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/image.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-02-27 12:26:35 -0600
committerbaude <bbaude@redhat.com>2019-02-28 09:36:23 -0600
commit3fa1fdf7117dbe4a114ddf9c4e7155cbb9ce2fed (patch)
treee49f95761c88c153db1b2f6063b47d463745b265 /cmd/podman/image.go
parent5afae0b25bba4e2274747b32cf8b3bc929daf06e (diff)
downloadpodman-3fa1fdf7117dbe4a114ddf9c4e7155cbb9ce2fed.tar.gz
podman-3fa1fdf7117dbe4a114ddf9c4e7155cbb9ce2fed.tar.bz2
podman-3fa1fdf7117dbe4a114ddf9c4e7155cbb9ce2fed.zip
fix up a number of misplace commands
* ps now on main command * sign is no longer on main commmand * ls, list no longer are valid main aliases for images * ls, list does work for podman image Signed-off-by: baude <bbaude@redhat.com>
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)
}