aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images/build.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-09 14:47:05 -0500
committerGitHub <noreply@github.com>2020-12-09 14:47:05 -0500
commitda062b5bd03dd88060eb91c7d02936d5e7427cb9 (patch)
tree4b61e35336b54b815e0cf844778eb8e29906a120 /cmd/podman/images/build.go
parent9abbe0728c5050914168a154622087a4dacd4dfe (diff)
parent2870a0b0a6b94528b82df7cee57c8c6a0252fc85 (diff)
downloadpodman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.tar.gz
podman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.tar.bz2
podman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.zip
Merge pull request #8635 from Luap99/shell-completion-test
Add system test for shell completion
Diffstat (limited to 'cmd/podman/images/build.go')
-rw-r--r--cmd/podman/images/build.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 739e1c265..48b355ecd 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -11,6 +11,7 @@ import (
"github.com/containers/buildah/pkg/parse"
"github.com/containers/common/pkg/completion"
"github.com/containers/common/pkg/config"
+ "github.com/containers/podman/v2/cmd/podman/common"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/cmd/podman/utils"
"github.com/containers/podman/v2/pkg/domain/entities"
@@ -44,7 +45,7 @@ var (
Long: buildDescription,
Args: cobra.MaximumNArgs(1),
RunE: build,
- ValidArgsFunction: completion.AutocompleteDefault,
+ ValidArgsFunction: common.AutocompleteDefaultOneArg,
Example: `podman build .
podman build --creds=username:password -t imageName -f Containerfile.simple .
podman build --layers --force-rm --tag imageName .`,