diff --git a/Formula/ctrlc.rb b/Formula/ctrlc.rb new file mode 100644 index 0000000..5f74650 --- /dev/null +++ b/Formula/ctrlc.rb @@ -0,0 +1,39 @@ +# typed: false +# frozen_string_literal: true + +class Ctrlc < Formula + desc "CLI for ctrlplane - A deployment orchestration tool" + homepage "https://github.com/ctrlplanedev/cli" + version "0.15.2" + license "MIT" + + on_macos do + on_intel do + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Darwin_x86_64.tar.gz" + sha256 "190a8f07698e6b9e9aaa4cbe2fcd041166852132832e9ec51349885aa820c17d" + end + on_arm do + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Darwin_arm64.tar.gz" + sha256 "a3968b2dfbf3789044127b533cfefa8bca1231d37c9b069b49742296c7027f72" + end + end + + on_linux do + on_intel do + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_x86_64.tar.gz" + sha256 "9a0b2bac9fc6d49de10e5de951116b89306024d826ba858f30d92167bfccf6d8" + end + on_arm do + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_arm64.tar.gz" + sha256 "27f7fdf29cb91d784f265125c980eae644d3f92ae42ee243b36d331e6b4512ad" + end + end + + def install + bin.install "ctrlc" + end + + test do + system "#{bin}/ctrlc", "version" + end +end diff --git a/README.md b/README.md index 3291e72..f867b94 100644 --- a/README.md +++ b/README.md @@ -1 +1,36 @@ -# homebrew-tap \ No newline at end of file +# homebrew-tap + +Homebrew tap for ctrlplane CLI tools. + +## Installation + +### ctrlc + +To install the `ctrlc` CLI: + +```bash +brew tap ctrlplanedev/tap +brew install ctrlc +``` + +Or in one line: + +```bash +brew install ctrlplanedev/tap/ctrlc +``` + +### Usage + +After installation, verify it works: + +```bash +ctrlc version +``` + +## About + +This tap provides Homebrew formulae for ctrlplane tools: + +- **ctrlc**: CLI for ctrlplane - A deployment orchestration tool that simplifies multi-cloud, multi-region, and multi-service deployments. + +For more information, visit the [ctrlplane CLI repository](https://github.com/ctrlplanedev/cli). \ No newline at end of file