36 lines
1.8 KiB
Ruby
36 lines
1.8 KiB
Ruby
class C14Cli < Formula
|
|
desc "Manage your Online C14 archives from the command-line"
|
|
homepage "https://github.com/scaleway/c14-cli"
|
|
url "https://github.com/scaleway/c14-cli/archive/v0.5.0.tar.gz"
|
|
sha256 "b93960ee3ba516a91df9f81cf9b258858f8b5da6238d44a339966a5636643cb2"
|
|
license "MIT"
|
|
head "https://github.com/scaleway/c14-cli.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "be959caf78dfb802e870bf852573fc68a6059acf8c9126abe0c4ff3056d10124"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "46d65ade1ad6406be53f136729cbeca6892dd53f6958dfd7417e3773ac9d2041"
|
|
sha256 cellar: :any_skip_relocation, monterey: "0afdbb28cf73d92ce3d609f52705c34d71a8a6d0b27a5a088f135da0f8f6938f"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "ad34da8ecf1f0563fb208247b904bc64c11ff98c681dc87744ea32e9093b5d19"
|
|
sha256 cellar: :any_skip_relocation, catalina: "137f585fd6aef342e9ac97ce6ffe819d30641727e7f9d621fa6d0124afeb46f5"
|
|
sha256 cellar: :any_skip_relocation, mojave: "245dc470e7883100e9b8d3dd229a5fbf2e0960993c7432be11e31ba7ef887f71"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "6b3262c0d209f01dd93a491c541ee7f9fedca9f6ff03203487394e0e4f5cdecf"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "a98a3f97b5f0d1429be76532f76c3a27b2d5c9d70330f8dd15320ea39ae480ba"
|
|
end
|
|
|
|
# "C14 Classic has been discontinued"
|
|
disable! date: "2022-07-31", because: :repo_archived
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", "-trimpath", "-o", bin/"c14",
|
|
"-ldflags", "-X github.com/online-net/c14-cli/pkg/version.GITCOMMIT=homebrew",
|
|
"./cmd/c14/"
|
|
end
|
|
|
|
test do
|
|
output = shell_output(bin/"c14 help")
|
|
assert_match "Interact with C14 from the command line.", output
|
|
end
|
|
end
|