Skip to content

Commit 38dcd72

Browse files
bors[bot]luis4a0
authored andcommitted
Merge #2120
2120: Complete bridge options in `launch` command r=townsend2010 a=luis4a0 This PR adds bash completions for the options `--bridged` and `--network bridged` of the `launch` command. Co-authored-by: Luis Peñaranda <[email protected]>
1 parent f33013c commit 38dcd72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

completions/bash/multipass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ _multipass_complete()
151151
opts="${opts} --all --purge"
152152
;;
153153
"launch")
154-
opts="${opts} --cpus --disk --mem --name --cloud-init --network"
154+
opts="${opts} --cpus --disk --mem --name --cloud-init --network --bridged"
155155
;;
156156
"mount")
157157
opts="${opts} --gid-map --uid-map"
@@ -180,9 +180,9 @@ _multipass_complete()
180180
"--network")
181181
_multipass_networks
182182
if [[ "${opts}" != "" ]]; then
183-
opts="${opts} id= mode= mac="
183+
opts="${opts} bridged id= mode= mac="
184184
fi
185-
# TODO: Do use spaces after the completion of an interface name.
185+
# TODO: Do use spaces after the completion of an interface name or "bridged".
186186
compopt -o nospace
187187
esac
188188
else

0 commit comments

Comments
 (0)