podman build -f completions
Also cleanup the code a bit. There's no --runtime flag for build.
Fixes:
@@ -1311,7 +1311,6 @@ _podman_build() {
--net
--network
--pid
- --runtime
--runtime-flag
--security-opt
--shm-size
@@ -1329,14 +1328,9 @@ _podman_build() {
-v
"
- local all_options="$options_with_args $boolean_options"
-
case "$prev" in
- --runtime)
- COMPREPLY=($(compgen -W 'runc runv' -- "$cur"))
- ;;
- $(__podman_to_extglob "$options_with_args"))
- return
+ --file|-f)
+ COMPREPLY=($(compgen -W "`ls`" -- "$cur"))
;;
esac
