# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class SrcCli < Formula
  desc "Sourcegraph CLI"
  homepage "https://sourcegraph.com/"
  version "3.33.0"
  bottle :unneeded

  on_macos do
    if Hardware::CPU.arm?
      url "https://github.com/sourcegraph/src-cli/releases/download/3.33.0/src-cli_3.33.0_darwin_arm64.tar.gz"
      sha256 "589ea3ed9726fa5b61f17b70abe60915905675eda486b1be59e03d4a9a1273dc"
    end
    if Hardware::CPU.intel?
      url "https://github.com/sourcegraph/src-cli/releases/download/3.33.0/src-cli_3.33.0_darwin_amd64.tar.gz"
      sha256 "37f93bee3fbc649bf148547c2d8a2d08b51b212b5dd554d31b08cb1ba73ff6c3"
    end
  end

  on_linux do
    if Hardware::CPU.intel?
      url "https://github.com/sourcegraph/src-cli/releases/download/3.33.0/src-cli_3.33.0_linux_amd64.tar.gz"
      sha256 "7878faa37a20cf0371359d9aefa6d6f3dbf2e34da63f044ec0bd1f3fd5deda6c"
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/sourcegraph/src-cli/releases/download/3.33.0/src-cli_3.33.0_linux_arm64.tar.gz"
      sha256 "e48c41a108af6364e8f7d341734fb6a8e5b057742b1d0ca938d7e6da232db06c"
    end
  end

  def install
    bin.install "src"
  end
end
