summaryrefslogtreecommitdiff
path: root/cmd/podman/images/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/images/tree.go')
-rw-r--r--cmd/podman/images/tree.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmd/podman/images/tree.go b/cmd/podman/images/tree.go
index 237a2ab91..76c69b37e 100644
--- a/cmd/podman/images/tree.go
+++ b/cmd/podman/images/tree.go
@@ -3,6 +3,7 @@ package images
import (
"fmt"
+ "github.com/containers/podman/v2/cmd/podman/common"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/pkg/domain/entities"
"github.com/spf13/cobra"
@@ -11,12 +12,13 @@ import (
var (
treeDescription = "Prints layer hierarchy of an image in a tree format"
treeCmd = &cobra.Command{
- Use: "tree [options] IMAGE",
- Args: cobra.ExactArgs(1),
- Short: treeDescription,
- Long: treeDescription,
- RunE: tree,
- Example: "podman image tree alpine:latest",
+ Use: "tree [options] IMAGE",
+ Args: cobra.ExactArgs(1),
+ Short: treeDescription,
+ Long: treeDescription,
+ RunE: tree,
+ ValidArgsFunction: common.AutocompleteImages,
+ Example: "podman image tree alpine:latest",
}
treeOpts entities.ImageTreeOptions
)