# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class StratusRedTeam < Formula
  desc ""
  homepage "https://stratus-red-team.cloud"
  version "2.23.1"
  license "Apache-2.0"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/DataDog/stratus-red-team/releases/download/v2.23.1/stratus-red-team_Darwin_x86_64.tar.gz"
      sha256 "d2dba7522cf98bb9d507acc5ea8b40b0e6e42b22a56c79b01a6a65f54192c454"

      def install
        bin.install "stratus"

        # Install shell completions
        generate_completions_from_executable(bin/"stratus", "completion", shells: [:bash, :fish, :zsh], base_name: "stratus")
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/DataDog/stratus-red-team/releases/download/v2.23.1/stratus-red-team_Darwin_arm64.tar.gz"
      sha256 "82f288511e60e976567b64f53fbad14119975cc5969e426153d23b130eca5dd7"

      def install
        bin.install "stratus"

        # Install shell completions
        generate_completions_from_executable(bin/"stratus", "completion", shells: [:bash, :fish, :zsh], base_name: "stratus")
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel?
      if Hardware::CPU.is_64_bit?
        url "https://github.com/DataDog/stratus-red-team/releases/download/v2.23.1/stratus-red-team_Linux_x86_64.tar.gz"
        sha256 "e3f489f91c99d06d19709c1c4a9190335a82330376dce5df56b86be222d9033d"

        def install
          bin.install "stratus"

          # Install shell completions
          generate_completions_from_executable(bin/"stratus", "completion", shells: [:bash, :fish, :zsh], base_name: "stratus")
        end
      end
    end
    if Hardware::CPU.arm?
      if Hardware::CPU.is_64_bit?
        url "https://github.com/DataDog/stratus-red-team/releases/download/v2.23.1/stratus-red-team_Linux_arm64.tar.gz"
        sha256 "ac84b342156c4de7902ea7948889a1718c96f421c7909a4c26c3ae32408dc023"

        def install
          bin.install "stratus"

          # Install shell completions
          generate_completions_from_executable(bin/"stratus", "completion", shells: [:bash, :fish, :zsh], base_name: "stratus")
        end
      end
    end
  end
end
