aboutsummaryrefslogtreecommitdiff
path: root/completions/bash/podman
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bash/podman')
-rw-r--r--completions/bash/podman24
1 files changed, 23 insertions, 1 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 6ec700f11..041703810 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -956,6 +956,7 @@ _podman_network() {
-h
"
subcommands="
+ create
inspect
ls
rm
@@ -972,6 +973,27 @@ _podman_network() {
esac
}
+_podman_network_create() {
+ local options_with_args="
+ -d
+ --driver
+ --gateway
+ --ip-range
+ --subnet
+ "
+ local boolean_options="
+ --help
+ -h
+ --internal
+ "
+ _complete_ "$options_with_args" "$boolean_options"
+
+ case "$cur" in
+ -*)
+ COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ ;;
+ esac
+}
_podman_network_inspect() {
local options_with_args="
"
@@ -1006,7 +1028,7 @@ _podman_network_ls() {
esac
}
-_podman_network_ls() {
+_podman_network_rm() {
local options_with_args="
"
local boolean_options="