# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Agbridge < Formula
  desc "agbridge CLI for forwarding requests to private API gateways in AWS."
  homepage "https://github.com/oscarbc96/agbridge"
  version "0.0.13"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/oscarbc96/agbridge/releases/download/v0.0.13/agbridge_Darwin_x86_64.tar.gz"
      sha256 "554710ad30bd1a14f7ea52def332c0ab03b2d9df41d573f4d4bef6029ecaf094"

      def install
        bin.install "agbridge"
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/oscarbc96/agbridge/releases/download/v0.0.13/agbridge_Darwin_arm64.tar.gz"
      sha256 "6ef4bb0611e2e5a1b3ba682f64333e19a97061d01ad789a1518d9bfa9881de6b"

      def install
        bin.install "agbridge"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
      url "https://github.com/oscarbc96/agbridge/releases/download/v0.0.13/agbridge_Linux_x86_64.tar.gz"
      sha256 "a7fb8ef5749b93b56b3931cfbea2c60c67bd458ee8d955ec965ee7d654c0273b"
      def install
        bin.install "agbridge"
      end
    end
    if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
      url "https://github.com/oscarbc96/agbridge/releases/download/v0.0.13/agbridge_Linux_arm64.tar.gz"
      sha256 "70731564a2c0c77d0f36cea5e2a55cc700a6240deac2dfca1104834d8741827f"
      def install
        bin.install "agbridge"
      end
    end
  end

  test do
    system "#{bin}/agbridge --version"
  end
end
