Skip to content

Commit

Permalink
Merge pull request #3 from openfga/release/cli-v0.2.7
Browse files Browse the repository at this point in the history
release: add v0.2.7 of the fga cli
  • Loading branch information
stevehobbsdev authored Mar 14, 2024
2 parents 9a11cc1 + 05649fe commit e525c91
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/fga.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
class Fga < Formula
desc "A cross-platform CLI to interact with an OpenFGA server."
homepage "https://openfga.dev/"
version "0.2.6"
version "0.2.7"
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.2.6/fga_0.2.6_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "ac2e47641920ad4851096437b7877851d70f226c3ad225f68df2783d3124dccd"
url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "5c47a351aa6b8cff9d0b95d6b50a452544200f32693e47587923b500a7257256"

def install
bin.install "fga"
Expand All @@ -25,8 +25,8 @@ def install
end
end
if Hardware::CPU.arm?
url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "a00204ade6bce42ecf99d7757c232e9fa75a586052de5f1ededbf07ba503e984"
url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "b08013933cb4f60bd072ca6fb4db2f82c8dccf5ba1a8785079118d3e324b7b57"

def install
bin.install "fga"
Expand All @@ -40,8 +40,8 @@ def install

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "37bf2c07f063749829cadc5cb7f3c0acf2d6603a60c13c04b8c5a3c5067f80db"
url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "fafe2ff658a0f0c9febf83367263a12a7e268ecb17ec903a38675c733741d630"

def install
bin.install "fga"
Expand All @@ -52,8 +52,8 @@ def install
end
end
if Hardware::CPU.intel?
url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "795482ea7b75bef965162c652fbfa2f7911a051342c366415ee840bc1e732e8e"
url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "ae37eef9253adebcacb1effc7ad3940c84e7f43f485f26159bc5706c5acf0965"

def install
bin.install "fga"
Expand Down
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 FgaAT027 < Formula
desc "A cross-platform CLI to interact with an OpenFGA server."
homepage "https://openfga.dev/"
version "0.2.7"
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.2.7/fga_0.2.7_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "5c47a351aa6b8cff9d0b95d6b50a452544200f32693e47587923b500a7257256"

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.2.7/fga_0.2.7_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "b08013933cb4f60bd072ca6fb4db2f82c8dccf5ba1a8785079118d3e324b7b57"

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

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.intel?
url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "ae37eef9253adebcacb1effc7ad3940c84e7f43f485f26159bc5706c5acf0965"

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 e525c91

Please sign in to comment.