podman build -f completions

Also cleanup the code a bit. There's no --runtime flag for build.

Fixes: #3878
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-02-11 13:35:12 +01:00
parent 72dcc45f5a
commit 9e1f6aeef8

View File

@ -1311,7 +1311,6 @@ _podman_build() {
--net
--network
--pid
--runtime
--runtime-flag
--security-opt
--shm-size
@ -1329,15 +1328,10 @@ _podman_build() {
-v
"
local all_options="$options_with_args $boolean_options"
case "$prev" in
--runtime)
COMPREPLY=($(compgen -W 'runc runv' -- "$cur"))
case "$prev" in
--file|-f)
COMPREPLY=($(compgen -W "`ls`" -- "$cur"))
;;
$(__podman_to_extglob "$options_with_args"))
return
;;
esac
case "$cur" in