diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-08-06 16:50:51 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-08-06 16:50:51 +0000 |
commit | a6f95c72259f2890e4a9f9f11166310812173c68 (patch) | |
tree | 8041e9cf99d8e21dab3c75112ac7d1c041b629bd /bash_completion/cloud-init | |
parent | e218c597c87205b239d5628dce1dc377fb83a0ea (diff) | |
download | vyos-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/cloud-init')
-rw-r--r-- | bash_completion/cloud-init | 7 |
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 |