summaryrefslogtreecommitdiff
path: root/completions/bash/podman
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2017-12-20 17:54:13 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-23 11:47:33 +0000
commitea5620182f6dc1fabc33e1a8d453d070fba0952c (patch)
treeb19193b6ba56b5be899a2619e7adde5c6e1c9787 /completions/bash/podman
parent7f531263e6e41195278f205ad01274487cc1c1e0 (diff)
downloadpodman-ea5620182f6dc1fabc33e1a8d453d070fba0952c.tar.gz
podman-ea5620182f6dc1fabc33e1a8d453d070fba0952c.tar.bz2
podman-ea5620182f6dc1fabc33e1a8d453d070fba0952c.zip
Initial podman build
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #162 Approved by: rhatdan
Diffstat (limited to 'completions/bash/podman')
-rw-r--r--completions/bash/podman43
1 files changed, 43 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 37f70e24a..abb629bc9 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -684,6 +684,48 @@ _podman_commit() {
esac
}
+_podman_build() {
+ local boolean_options="
+ --build
+ --help
+ -h
+ --pull
+ --pull-always
+ --quiet
+ -q
+ --tls-verify
+ "
+
+ local options_with_args="
+ --signature-policy
+ --runtime
+ --runtime-flag
+ --tag
+ -t
+ --file
+ -f
+ --build-arg
+ --format
+ "
+
+ local all_options="$options_with_args $boolean_options"
+
+ case "$prev" in
+ --runtime)
+ COMPREPLY=($(compgen -W 'runc runv' -- "$cur"))
+ ;;
+ $(__buildah_to_extglob "$options_with_args"))
+ return
+ ;;
+ esac
+
+ case "$cur" in
+ -*)
+ COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ ;;
+ esac
+}
+
_podman_diff() {
local options_with_args="
--format
@@ -1481,6 +1523,7 @@ _podman_podman() {
"
commands="
attach
+ build
commit
create
diff