summaryrefslogtreecommitdiff
path: root/cmd/podman/commands.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/commands.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/commands.go')
-rw-r--r--cmd/podman/commands.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go
index fd36e77d5..2f9a9cfe2 100644
--- a/cmd/podman/commands.go
+++ b/cmd/podman/commands.go
@@ -18,7 +18,7 @@ func getMainCommands() []*cobra.Command {
_execCommand,
_generateCommand,
_playCommand,
- _psCommand,
+ &_psCommand,
_loginCommand,
_logoutCommand,
_logsCommand,
@@ -54,6 +54,10 @@ func getImageSubCommands() []*cobra.Command {
// Commands that the local client implements
func getContainerSubCommands() []*cobra.Command {
+
+ var _listSubCommand = _psCommand
+ _listSubCommand.Use = "list"
+
return []*cobra.Command{
_attachCommand,
_checkpointCommand,
@@ -64,8 +68,8 @@ func getContainerSubCommands() []*cobra.Command {
_execCommand,
_exportCommand,
_killCommand,
+ &_listSubCommand,
_logsCommand,
- _psCommand,
_mountCommand,
_pauseCommand,
_portCommand,