From 908e0155a3d66e5fed0647c64204f0380108ab910a60826ebebcd2ea65326b61 Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Fri, 27 Oct 2023 11:52:45 +0000 Subject: [PATCH 1/2] Accepting request 1120790 from home:manfred-h:devel:kubic - autocomplete files can be generate using "helmfile complete" for the shells "bash", "zsh" and "fish". Use this feature to provide additional helmfile--completion packages again. OBS-URL: https://build.opensuse.org/request/show/1120790 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=92 --- helmfile.changes | 7 +++++++ helmfile.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/helmfile.changes b/helmfile.changes index 142ce41..258f5c0 100644 --- a/helmfile.changes +++ b/helmfile.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Oct 27 11:44:03 UTC 2023 - Manfred Hollstein + +- autocomplete files can be generate using "helmfile complete" for + the shells "bash", "zsh" and "fish". Use this feature to provide + additional helmfile--completion packages again. + ------------------------------------------------------------------- Tue Oct 24 12:05:38 UTC 2023 - Manfred Hollstein diff --git a/helmfile.spec b/helmfile.spec index 3da3191..3010893 100644 --- a/helmfile.spec +++ b/helmfile.spec @@ -45,6 +45,36 @@ Helmfile is a declarative spec for deploying helm charts. It lets you... To avoid upgrades for each iteration of helm, the helmfile executable delegates to helm - as a result, helm must be installed. +%package bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash command line completion support for %{name}. + +%package zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description zsh-completion +Zsh command line completion support for %{name}. + +%package fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description fish-completion +Fish command line completion support for %{name}. + %prep %setup -qa1 @@ -62,10 +92,29 @@ export SOURCE_DATE_EPOCH make TAG=v%{version} install mkdir -p %{buildroot}%{_bindir} install -m755 ${HOME}/go/bin/helmfile %{buildroot}/%{_bindir}/helmfile +mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions +%{buildroot}/%{_bindir}/helmfile completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name} +mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d +%{buildroot}/%{_bindir}/helmfile completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name} +mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d +%{buildroot}/%{_bindir}/helmfile completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish %files %doc README.md %license LICENSE %{_bindir}/helmfile +%files bash-completion +%dir %{_datarootdir}/bash-completion/completions/ +%{_datarootdir}/bash-completion/completions/%{name} + +%files zsh-completion +%dir %{_datarootdir}/zsh_completion.d/ +%{_datarootdir}/zsh_completion.d/_%{name} + +%files fish-completion +%dir %{_datarootdir}/fish +%dir %{_datarootdir}/fish/vendor_completions.d +%{_datarootdir}/fish/vendor_completions.d/%{name}.fish + %changelog From 32d4f88f8ed2961fe5792ea0a4973d4c0163963e75eb344aed058d5c5b3de236 Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Fri, 27 Oct 2023 11:57:45 +0000 Subject: [PATCH 2/2] Accepting request 1120794 from home:manfred-h:devel:kubic - autocomplete files can be generated using "helmfile complete" for the shells "bash", "zsh" and "fish". Use this feature to provide additional helmfile--completion packages again. OBS-URL: https://build.opensuse.org/request/show/1120794 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/helmfile?expand=0&rev=93 --- helmfile.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helmfile.changes b/helmfile.changes index 258f5c0..cb1e91b 100644 --- a/helmfile.changes +++ b/helmfile.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Fri Oct 27 11:44:03 UTC 2023 - Manfred Hollstein -- autocomplete files can be generate using "helmfile complete" for +- autocomplete files can be generated using "helmfile complete" for the shells "bash", "zsh" and "fish". Use this feature to provide additional helmfile--completion packages again.