summaryrefslogtreecommitdiff
path: root/bash_completion
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-08-06 16:50:51 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-08-06 16:50:51 +0000
commita6f95c72259f2890e4a9f9f11166310812173c68 (patch)
tree8041e9cf99d8e21dab3c75112ac7d1c041b629bd /bash_completion
parente218c597c87205b239d5628dce1dc377fb83a0ea (diff)
downloadvyos-cloud-init-a6f95c72259f2890e4a9f9f11166310812173c68.tar.gz
vyos-cloud-init-a6f95c72259f2890e4a9f9f11166310812173c68.zip
tools: Add 'net-convert' subcommand command to 'cloud-init devel'.
Move the tools/net-convert.py to be exposed as part of 'cloud-init devel' subcommands. It can now be called like: $ cloud-init devel net-convert Or, if you just have checked out source (and no cli executable):   $ python3 -m cloudinit.cmd.devel.net_convert or   $ python3 -m cloudinit.cmd.main devel net-convert
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion/cloud-init7
1 files changed, 5 insertions, 2 deletions
diff --git a/bash_completion/cloud-init b/bash_completion/cloud-init
index 581432c8..f38164b0 100644
--- a/bash_completion/cloud-init
+++ b/bash_completion/cloud-init
@@ -28,7 +28,7 @@ _cloudinit_complete()
COMPREPLY=($(compgen -W "--help --tarfile --include-userdata" -- $cur_word))
;;
devel)
- COMPREPLY=($(compgen -W "--help schema" -- $cur_word))
+ COMPREPLY=($(compgen -W "--help schema net-convert" -- $cur_word))
;;
dhclient-hook|features)
COMPREPLY=($(compgen -W "--help" -- $cur_word))
@@ -59,6 +59,9 @@ _cloudinit_complete()
--frequency)
COMPREPLY=($(compgen -W "--help instance always once" -- $cur_word))
;;
+ net-convert)
+ COMPREPLY=($(compgen -W "--help --network-data --kind --directory --output-kind" -- $cur_word))
+ ;;
schema)
COMPREPLY=($(compgen -W "--help --config-file --doc --annotate" -- $cur_word))
;;
@@ -74,4 +77,4 @@ _cloudinit_complete()
}
complete -F _cloudinit_complete cloud-init
-# vi: syntax=bash expandtab
+# vi: syntax=sh expandtab