summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-08-08 06:01:00 -0500
committerbaude <bbaude@redhat.com>2019-09-09 09:32:43 -0500
commitee432cf2792c5dbe81953007f1fd5c87beb3ebd5 (patch)
treedc0646e4b2faeadf9cca58bf80f1e90d98c50165 /completions/bash
parent30cbb0091515a7f802f0f3f3ee486be6ff98f645 (diff)
downloadpodman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.tar.gz
podman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.tar.bz2
podman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.zip
podman network create
initial implementation of network create. we only support bridging networks with this first pass. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman24
1 files changed, 23 insertions, 1 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index e6ffb135f..ec660712b 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -952,6 +952,7 @@ _podman_network() {
-h
"
subcommands="
+ create
inspect
ls
rm
@@ -968,6 +969,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="
"
@@ -1002,7 +1024,7 @@ _podman_network_ls() {
esac
}
-_podman_network_ls() {
+_podman_network_rm() {
local options_with_args="
"
local boolean_options="