aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/ps.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-22 07:28:21 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-23 09:38:57 -0500
commita22f00d4c58fdaba479405b38bac1508ef889c7e (patch)
tree80858474bac3f9103546ed334ac0509aff38885d /cmd/podman/ps.go
parent792f10988ed2badcce9a11a880303614412b9a00 (diff)
downloadpodman-a22f00d4c58fdaba479405b38bac1508ef889c7e.tar.gz
podman-a22f00d4c58fdaba479405b38bac1508ef889c7e.tar.bz2
podman-a22f00d4c58fdaba479405b38bac1508ef889c7e.zip
Allow alias for list, ls, ps to work
Allow multiple alias for listing containers and images. Also fix documentation for umount and unmount Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/ps.go')
-rw-r--r--cmd/podman/ps.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index 7a4a80769..0ad3f4c73 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -207,7 +207,8 @@ var (
}
psDescription = "Prints out information about the containers"
psCommand = cli.Command{
- Name: "ps",
+ Name: "list",
+ Aliases: []string{"ls", "ps"},
Usage: "List containers",
Description: psDescription,
Flags: sortFlags(psFlags),
@@ -216,16 +217,6 @@ var (
UseShortOptionHandling: true,
OnUsageError: usageErrorHandler,
}
- lsCommand = cli.Command{
- Name: "ls",
- Usage: "List containers",
- Description: psDescription,
- Flags: psFlags,
- Action: psCmd,
- ArgsUsage: "",
- UseShortOptionHandling: true,
- OnUsageError: usageErrorHandler,
- }
)
func psCmd(c *cli.Context) error {