-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brew formula update for fga version v0.5.2
- Loading branch information
1 parent
257e8ae
commit 94ca0e7
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 FgaAT052 < Formula | ||
desc "A cross-platform CLI to interact with an OpenFGA server." | ||
homepage "https://openfga.dev/" | ||
version "0.5.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.5.2/fga_0.5.2_darwin_amd64.tar.gz", using: CurlDownloadStrategy | ||
sha256 "4cc8c7ace1275f32ff8ae734f97e03ce982dded10b5cff392e831fbd29c34db5" | ||
|
||
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.5.2/fga_0.5.2_darwin_arm64.tar.gz", using: CurlDownloadStrategy | ||
sha256 "63c73559212deb4adf737c4c16ceb55020e2f0b0321cf9e8ae6891f15f9e1cab" | ||
|
||
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.5.2/fga_0.5.2_linux_amd64.tar.gz", using: CurlDownloadStrategy | ||
sha256 "8f2d4a27781702c9ea5f6267affccbde40ebf61ee9a013cb7350b643bf51a21e" | ||
|
||
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.5.2/fga_0.5.2_linux_arm64.tar.gz", using: CurlDownloadStrategy | ||
sha256 "32e2c1d9c5eddaf7a13cf0cb8c1df43efc50fdceb3622ed299d5dd1e60dbf466" | ||
|
||
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 |