summaryrefslogtreecommitdiff
path: root/cmd/podman/images/trust_show.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/images/trust_show.go')
-rw-r--r--cmd/podman/images/trust_show.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmd/podman/images/trust_show.go b/cmd/podman/images/trust_show.go
index ba3b4e7fb..dc35dc6a1 100644
--- a/cmd/podman/images/trust_show.go
+++ b/cmd/podman/images/trust_show.go
@@ -6,6 +6,7 @@ import (
"text/tabwriter"
"text/template"
+ "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"
@@ -14,12 +15,13 @@ import (
var (
showTrustDescription = "Display trust policy for the system"
showTrustCommand = &cobra.Command{
- Use: "show [options] [REGISTRY]",
- Short: "Display trust policy for the system",
- Long: showTrustDescription,
- RunE: showTrust,
- Args: cobra.MaximumNArgs(1),
- Example: "",
+ Use: "show [options] [REGISTRY]",
+ Short: "Display trust policy for the system",
+ Long: showTrustDescription,
+ RunE: showTrust,
+ Args: cobra.MaximumNArgs(1),
+ ValidArgsFunction: common.AutocompleteRegistries,
+ Example: "",
}
)