Skip to content

Commit

Permalink
Brew formula update for fga version v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Dec 2, 2024
1 parent 4510d44 commit f9f30a8
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class FgaAT062 < Formula
desc "A cross-platform CLI to interact with an OpenFGA server."
homepage "https://openfga.dev/"
version "0.6.2"
license "Apache-2.0"

depends_on "git"
depends_on "go" => :optional

on_macos do
on_intel do
url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "5f4d0ea21f121518b816e14997babbacdb195eaf58ae323c96cc706380e3a71f"

def install
bin.install "fga"
bash_completion.install "completions/fga.bash" => "fga"
zsh_completion.install "completions/fga.zsh" => "_fga"
fish_completion.install "completions/fga.fish"
man1.install "manpages/fga.1.gz"
end
end
on_arm do
url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "ec63f169a145a75b1929e07d158967c10c766a96329ac7440509130a95233e97"

def install
bin.install "fga"
bash_completion.install "completions/fga.bash" => "fga"
zsh_completion.install "completions/fga.zsh" => "_fga"
fish_completion.install "completions/fga.fish"
man1.install "manpages/fga.1.gz"
end
end
end

on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "4847b80f92eeacda0b30117547080a36465160d08266603c1043c1a33519e368"

def install
bin.install "fga"
bash_completion.install "completions/fga.bash" => "fga"
zsh_completion.install "completions/fga.zsh" => "_fga"
fish_completion.install "completions/fga.fish"
man1.install "manpages/fga.1.gz"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "d99c108845c40537bd6b6cab1b6018294b47b120c935c98c1d3c13ddc99c55b7"

def install
bin.install "fga"
bash_completion.install "completions/fga.bash" => "fga"
zsh_completion.install "completions/fga.zsh" => "_fga"
fish_completion.install "completions/fga.fish"
man1.install "manpages/fga.1.gz"
end
end
end
end

head "https://github.com/openfga/cli.git", :branch => "main"

test do
system "#{bin}/fga version"
end
end

0 comments on commit f9f30a8

Please sign in to comment.