diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-17 14:11:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 14:11:20 -0400 |
commit | 0a3444613e5eed3322d2b44cdc94a5ab9678768b (patch) | |
tree | 9e986b8d34f1b4e221e4966c46d4048c408846b0 /cmd/podman/networks | |
parent | 93c3e03227bee7b3b6f58e8fe038965505bbfa69 (diff) | |
parent | 0d811b23390950d961e431851c2fbe409db493d7 (diff) | |
download | podman-0a3444613e5eed3322d2b44cdc94a5ab9678768b.tar.gz podman-0a3444613e5eed3322d2b44cdc94a5ab9678768b.tar.bz2 podman-0a3444613e5eed3322d2b44cdc94a5ab9678768b.zip |
Merge pull request #10328 from Luap99/completions
Several shell completion fixes
Diffstat (limited to 'cmd/podman/networks')
-rw-r--r-- | cmd/podman/networks/prune.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/networks/prune.go b/cmd/podman/networks/prune.go index bcc55f0f4..5f1cbda5f 100644 --- a/cmd/podman/networks/prune.go +++ b/cmd/podman/networks/prune.go @@ -6,7 +6,6 @@ import ( "os" "strings" - "github.com/containers/common/pkg/completion" "github.com/containers/podman/v3/cmd/podman/common" "github.com/containers/podman/v3/cmd/podman/registry" "github.com/containers/podman/v3/cmd/podman/utils" @@ -39,7 +38,7 @@ func networkPruneFlags(cmd *cobra.Command, flags *pflag.FlagSet) { flags.BoolVarP(&force, "force", "f", false, "do not prompt for confirmation") filterFlagName := "filter" flags.StringArrayVar(&filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')") - _ = cmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone) + _ = cmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters) } func init() { |