Files
ccswitch/Formula/ccswitch.rb
T

42 lines
1.4 KiB
Ruby

# Auto-generated by .github/workflows/release.yml on each tag. Do not edit by hand.
class Ccswitch < Formula
desc "Cross-shell switcher for multiple Claude Code accounts"
homepage "https://github.com/mysqto/ccswitch"
version "0.1.1"
on_macos do
on_arm do
url "https://github.com/mysqto/ccswitch/releases/download/v#{version}/ccswitch-v#{version}-aarch64-apple-darwin.tar.gz"
sha256 "0a09874d7b0af578cafb2d9831d72f694d879d186cdc3483cd88e5f01b2e6835"
end
on_intel do
url "https://github.com/mysqto/ccswitch/releases/download/v#{version}/ccswitch-v#{version}-x86_64-apple-darwin.tar.gz"
sha256 "882c5382f1e7a7059130fe6957830386cb9d55b788e77a1b6e10a617f7b4859a"
end
end
on_linux do
on_arm do
url "https://github.com/mysqto/ccswitch/releases/download/v#{version}/ccswitch-v#{version}-aarch64-unknown-linux-gnu.tar.gz"
sha256 "0cda51f04a6983cce2bd8f0dce945a5abf60bc877a73b5badfb9e3bb3b6b5e66"
end
on_intel do
url "https://github.com/mysqto/ccswitch/releases/download/v#{version}/ccswitch-v#{version}-x86_64-unknown-linux-gnu.tar.gz"
sha256 "35128946f7ca90df4b391dba636866e36b3bc151526ad3ae7c895e6d2379897c"
end
end
livecheck do
url :url
strategy :github_latest
end
def install
bin.install "ccswitch"
generate_completions_from_executable(bin/"ccswitch", "completions")
end
test do
assert_match "ccswitch", shell_output("#{bin}/ccswitch --help")
end
end