summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2018-04-17 20:07:59 -0500
committerRyan Harper <ryan.harper@canonical.com>2018-04-17 20:07:59 -0500
commit6a979bb2fabd187efc392de7b0852cd0361bc9b8 (patch)
tree4c9b732856b74fafafbb57cc50bff29b9adf72fa /packages
parent49b562c94838f4e2c0aa0df01a5247d06bc8a561 (diff)
downloadvyos-cloud-init-6a979bb2fabd187efc392de7b0852cd0361bc9b8.tar.gz
vyos-cloud-init-6a979bb2fabd187efc392de7b0852cd0361bc9b8.zip
Implement bash completion script for cloud-init command line
In bash shells with bash_completion enabled, now the cloud-init sub commands and parameters/flags will be shown.
Diffstat (limited to 'packages')
-rw-r--r--packages/redhat/cloud-init.spec.in1
-rw-r--r--packages/suse/cloud-init.spec.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in
index 6ab0d20b..91faf3c6 100644
--- a/packages/redhat/cloud-init.spec.in
+++ b/packages/redhat/cloud-init.spec.in
@@ -197,6 +197,7 @@ fi
%dir %{_sysconfdir}/cloud/templates
%config(noreplace) %{_sysconfdir}/cloud/templates/*
%config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf
+%{_sysconfdir}/bash_completion.d/cloud-init
%{_libexecdir}/%{name}
%dir %{_sharedstatedir}/cloud
diff --git a/packages/suse/cloud-init.spec.in b/packages/suse/cloud-init.spec.in
index 86e18b1b..bbb965a7 100644
--- a/packages/suse/cloud-init.spec.in
+++ b/packages/suse/cloud-init.spec.in
@@ -136,6 +136,7 @@ mkdir -p %{buildroot}/var/lib/cloud
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/README
%dir %{_sysconfdir}/cloud/templates
%config(noreplace) %{_sysconfdir}/cloud/templates/*
+%{_sysconfdir}/bash_completion.d/cloud-init
# Python code is here...
%{python_sitelib}/*