diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-23 19:38:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 19:38:59 +0100 |
commit | e772ef0f92a27f2d013e3526f5a0b13927c0700c (patch) | |
tree | 51b405683904a8b6bd880ad035206346bd0fa980 /cmd/podman/networks | |
parent | 4b9b3783c796333a9f0bb56f8a173941adf499d2 (diff) | |
parent | 818162155a092506403d5a27ad1eb3717de37078 (diff) | |
download | podman-e772ef0f92a27f2d013e3526f5a0b13927c0700c.tar.gz podman-e772ef0f92a27f2d013e3526f5a0b13927c0700c.tar.bz2 podman-e772ef0f92a27f2d013e3526f5a0b13927c0700c.zip |
Merge pull request #8416 from Luap99/shell-completion
more shell completion improvements
Diffstat (limited to 'cmd/podman/networks')
-rw-r--r-- | cmd/podman/networks/connect.go | 2 | ||||
-rw-r--r-- | cmd/podman/networks/disconnect.go | 2 | ||||
-rw-r--r-- | cmd/podman/networks/list.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/networks/connect.go b/cmd/podman/networks/connect.go index a7636688c..8afc0c7c0 100644 --- a/cmd/podman/networks/connect.go +++ b/cmd/podman/networks/connect.go @@ -17,7 +17,7 @@ var ( RunE: networkConnect, Example: `podman network connect web secondary`, Args: cobra.ExactArgs(2), - ValidArgsFunction: common.AutocompleteNetworks, + ValidArgsFunction: common.AutocompleteNetworkConnectCmd, } ) diff --git a/cmd/podman/networks/disconnect.go b/cmd/podman/networks/disconnect.go index 598c23a1c..a30315774 100644 --- a/cmd/podman/networks/disconnect.go +++ b/cmd/podman/networks/disconnect.go @@ -17,7 +17,7 @@ var ( RunE: networkDisconnect, Example: `podman network disconnect web secondary`, Args: cobra.ExactArgs(2), - ValidArgsFunction: common.AutocompleteNetworks, + ValidArgsFunction: common.AutocompleteNetworkConnectCmd, } ) diff --git a/cmd/podman/networks/list.go b/cmd/podman/networks/list.go index f2a5a431a..dcba3f186 100644 --- a/cmd/podman/networks/list.go +++ b/cmd/podman/networks/list.go @@ -46,7 +46,7 @@ func networkListFlags(flags *pflag.FlagSet) { filterFlagName := "filter" flags.StringVarP(&networkListOptions.Filter, filterFlagName, "", "", "Provide filter values (e.g. 'name=podman')") - _ = networklistCommand.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone) + _ = networklistCommand.RegisterFlagCompletionFunc(filterFlagName, common.AutocompleteNetworkFilters) } |