Fix aliased commands to actually work

The current aliased commands

podman container list

and

podman image list
podman image rm

Do not work properly.  The global storage options are broken.

This patch fixes this issue.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2019-03-02 07:14:28 -05:00
parent 4c618875f6
commit d231cfba92
8 changed files with 116 additions and 75 deletions

View File

@@ -55,9 +55,6 @@ 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,
@@ -68,7 +65,6 @@ func getContainerSubCommands() []*cobra.Command {
_execCommand,
_exportCommand,
_killCommand,
&_listSubCommand,
_logsCommand,
_mountCommand,
_pauseCommand,