From cd9fcaf7b71b13b629c876730b1cd55f99b56593 Mon Sep 17 00:00:00 2001 From: appwrite-bot Date: Tue, 28 Apr 2026 11:41:54 +0000 Subject: [PATCH 1/2] appwrite 19.2.0 --- Formula/appwrite.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Formula/appwrite.rb b/Formula/appwrite.rb index a39806c..977422d 100644 --- a/Formula/appwrite.rb +++ b/Formula/appwrite.rb @@ -1,7 +1,7 @@ class Appwrite < Formula desc "Command-line tool for interacting with the Appwrite API" homepage "https://appwrite.io" - version "19.1.0" + version "19.2.0" license "BSD-3-Clause" def self.binary_arch @@ -34,20 +34,20 @@ def self.build_target on_macos do if Hardware::CPU.arm? url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-darwin-arm64" - sha256 "a1115208e383643f0fcb9a05efa10faf15524bbab78f6653774706f7820a3b38" + sha256 "dcbf03b4b5269ad783ea73ca389ed219cf43d8b627df2fdfd3012ce93706b49e" else url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-darwin-x64" - sha256 "37ee53a6dc65a3c75bc7c237d3617ed8f2b4668ddffb0e8c254532daa9ccdd6a" + sha256 "b0a66063a2f34dd2b5c19dcb8b6914eeb0bd37cb5fe5395be24a065f7722cd72" end end on_linux do if Hardware::CPU.arm? url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-linux-arm64" - sha256 "a013e833588a7b6951b1a706580fd7406bcecf661682d97d9afab11b61b346f8" + sha256 "9f5b0447c51fdd686673307e01daeeb78d2263724bcdfe5ff51e3f14adb82ab1" else url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-linux-x64" - sha256 "7782550ebd38483c2bded1201bc1d79fcac85535eebb2458e3c62ab3fd5a8f00" + sha256 "2e9f4c101b443ebb94c993fb7fdd12f4473bd85177fae31635ae53f114b15891" end end From 8445a84f314ebd35df8616fd22430325ae99f155 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 28 Apr 2026 17:14:54 +0530 Subject: [PATCH 2/2] Install shell completions via the formula MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 19.2.0 CLI prints completion scripts via `appwrite completion {bash,zsh,fish}` and skips the update-notice and migrate hooks for completion invocations, so the output is safe to pipe into Homebrew's native completion paths. * Use `generate_completions_from_executable` so `brew install` wires up bash, zsh, and fish completions automatically — Homebrew users no longer need to run `appwrite completion install`. * Refactor the install branch so completion generation runs for both head and bottle builds. * Cover the new path in the formula test. --- Formula/appwrite.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Formula/appwrite.rb b/Formula/appwrite.rb index 977422d..3d5bc2a 100644 --- a/Formula/appwrite.rb +++ b/Formula/appwrite.rb @@ -56,13 +56,15 @@ def install system "bun", "install", "--frozen-lockfile" system "bun", "run", self.class.build_target bin.install "build/#{self.class.binary_name}" => "appwrite" - return + else + bin.install self.class.binary_name => "appwrite" end - bin.install self.class.binary_name => "appwrite" + generate_completions_from_executable(bin/"appwrite", "completion") end test do assert_match "Usage:", shell_output("#{bin}/appwrite --help") + assert_match "compdef", shell_output("#{bin}/appwrite completion zsh") end end