Skip to content

Commit

Permalink
Merge pull request containers#7611 from rhatdan/completions
Browse files Browse the repository at this point in the history
Fix completions for namespaces
  • Loading branch information
openshift-merge-robot authored Sep 14, 2020
2 parents b7a7cf6 + 9c8bc47 commit fd7cdb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions completions/bash/podman
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ _podman_container_run() {
__podman_complete_containers_running
;;
*)
COMPREPLY=( $( compgen -W 'host container:' -- "$cur" ) )
COMPREPLY=( $( compgen -W 'host private container:' -- "$cur" ) )
if [ "$COMPREPLY" = "container:" ]; then
__podman_nospace
fi
Expand All @@ -2337,7 +2337,7 @@ _podman_container_run() {
__podman_complete_containers_all --cur "${cur#*:}"
;;
*)
COMPREPLY=( $( compgen -W "$(__podman_plugins_bundled --type Network) $(__podman_networks) container:" -- "$cur") )
COMPREPLY=( $(compgen -W "bridge none host ns: private slirp4netns $(__podman_networks) container:" -- "$cur"))
if [ "${COMPREPLY[*]}" = "container:" ] ; then
__podman_nospace
fi
Expand All @@ -2355,7 +2355,7 @@ _podman_container_run() {
__podman_complete_containers_running --cur "${cur#*:}"
;;
*)
COMPREPLY=( $( compgen -W 'host container:' -- "$cur" ) )
COMPREPLY=( $( compgen -W 'host container: private' -- "$cur" ) )
if [ "$COMPREPLY" = "container:" ]; then
__podman_nospace
fi
Expand Down Expand Up @@ -2384,7 +2384,7 @@ _podman_container_run() {
return
;;
--userns)
COMPREPLY=( $( compgen -W "host" -- "$cur" ) )
COMPREPLY=( $( compgen -W "auto container: host keep-id ns: private" -- "$cur" ) )
return
;;
--volumes-from)
Expand Down

0 comments on commit fd7cdb2

Please sign in to comment.