summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/top.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/pods/top.go')
-rw-r--r--cmd/podman/pods/top.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd/podman/pods/top.go b/cmd/podman/pods/top.go
index 0ffa724da..45ef1e7c2 100644
--- a/cmd/podman/pods/top.go
+++ b/cmd/podman/pods/top.go
@@ -7,6 +7,7 @@ import (
"strings"
"text/tabwriter"
+ "github.com/containers/podman/v2/cmd/podman/common"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/cmd/podman/validate"
"github.com/containers/podman/v2/pkg/domain/entities"
@@ -23,11 +24,12 @@ var (
topOptions = entities.PodTopOptions{}
topCommand = &cobra.Command{
- Use: "top [options] POD [FORMAT-DESCRIPTORS|ARGS...]",
- Short: "Display the running processes of containers in a pod",
- Long: topDescription,
- RunE: top,
- Args: cobra.ArbitraryArgs,
+ Use: "top [options] POD [FORMAT-DESCRIPTORS|ARGS...]",
+ Short: "Display the running processes of containers in a pod",
+ Long: topDescription,
+ RunE: top,
+ Args: cobra.ArbitraryArgs,
+ ValidArgsFunction: common.AutocompletePodsRunning,
Example: `podman pod top podID
podman pod top --latest
podman pod top podID pid seccomp args %C