Skip to content

Commit

Permalink
podman build -f completions
Browse files Browse the repository at this point in the history
Also cleanup the code a bit. There's no --runtime flag for build.

Fixes: containers#3878
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg authored and snj33v committed May 31, 2020
1 parent ad68b97 commit 547d12a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions completions/bash/podman
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,6 @@ _podman_build() {
--net
--network
--pid
--runtime
--runtime-flag
--security-opt
--shm-size
Expand All @@ -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
Expand Down

0 comments on commit 547d12a

Please sign in to comment.