From 0c7bf6b41c0becc01eee10f449cadd409d5ba3d0 Mon Sep 17 00:00:00 2001
From: Pete Davison <pd93.uk@outlook.com>
Date: Thu, 2 Jan 2025 22:12:18 +0000
Subject: [PATCH] feat: update homebrew to use
 generate_completions_from_executable

---
 .goreleaser.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.goreleaser.yml b/.goreleaser.yml
index 6c0ad29653..c0e570d8ea 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -87,9 +87,7 @@ brews:
       system "#{bin}/task", "--help"
     install: |-
       bin.install "task"
-      bash_completion.install "completion/bash/task.bash" => "task"
-      zsh_completion.install "completion/zsh/_task" => "_task"
-      fish_completion.install "completion/fish/task.fish"
+      generate_completions_from_executable(bin/"task", "--completion")
     commit_author:
       name: task-bot
       email: 106601941+task-bot@users.noreply.github.com