diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-11 13:35:12 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-11 13:42:23 +0100 |
commit | 9e1f6aeef8b8e15c7e7190254b97c04c8144b878 (patch) | |
tree | fbdea4f9a7344894b6a995b993baa7fcb2c148a3 | |
parent | 72dcc45f5ad7cb6f8b45305694bd6675d65989d8 (diff) | |
download | podman-9e1f6aeef8b8e15c7e7190254b97c04c8144b878.tar.gz podman-9e1f6aeef8b8e15c7e7190254b97c04c8144b878.tar.bz2 podman-9e1f6aeef8b8e15c7e7190254b97c04c8144b878.zip |
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>
-rw-r--r-- | completions/bash/podman | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 56559c142..7c14cf67c 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -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 |