Skip to content

Commit

Permalink
Brew formula update for fga version v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Apr 29, 2024
1 parent 02968af commit 193f78b
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# typed: false
# frozen_string_literal: true

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

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

on_macos do
if Hardware::CPU.intel?
url "https://github.com/openfga/cli/releases/download/v0.3.1/fga_0.3.1_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "72c106744cf7eb02528ec7b0194c6edc6ecc5e7eaa0a5149fb48a8feb37abd26"

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
if Hardware::CPU.arm?
url "https://github.com/openfga/cli/releases/download/v0.3.1/fga_0.3.1_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "4cc21e82d7506c11f257371013f3f155cab605ed1a37a28fd6077c43697ca69b"

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
if Hardware::CPU.intel?
url "https://github.com/openfga/cli/releases/download/v0.3.1/fga_0.3.1_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "6e7651bacb7e98dd5136479bf5aae3112e4afca7869f07e3704e091e1156e2bf"

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
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/openfga/cli/releases/download/v0.3.1/fga_0.3.1_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "c2f1f09404d93dd2f43c2b95e4a778ceff9664deb4b2007b8bacdb02d6ba4436"

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

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

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

0 comments on commit 193f78b

Please sign in to comment.