diff --git a/helmfile.changes b/helmfile.changes index 142ce41..cb1e91b 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 generated 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