From ceb08035c987c5d745787a644560f6f72437bdf1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 05:42:28 +0000 Subject: [PATCH 1/4] Initial plan From 5a9433fd32cfd702fec8afe7586612e3774423f1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 05:45:59 +0000 Subject: [PATCH 2/4] Add Homebrew formula for ctrlc CLI Co-authored-by: jsbroks <24920936+jsbroks@users.noreply.github.com> --- Formula/ctrlc.rb | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 37 +++++++++++++++++++++++++++++++- 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 Formula/ctrlc.rb diff --git a/Formula/ctrlc.rb b/Formula/ctrlc.rb new file mode 100644 index 0000000..49aacaf --- /dev/null +++ b/Formula/ctrlc.rb @@ -0,0 +1,56 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +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" + + def install + bin.install "ctrlc" + end + end + on_arm do + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Darwin_arm64.tar.gz" + sha256 "a3968b2dfbf3789044127b533cfefa8bca1231d37c9b069b49742296c7027f72" + + def install + bin.install "ctrlc" + end + end + end + + on_linux do + on_intel do + if Hardware::CPU.is_64_bit? + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_x86_64.tar.gz" + sha256 "9a0b2bac9fc6d49de10e5de951116b89306024d826ba858f30d92167bfccf6d8" + + def install + bin.install "ctrlc" + end + end + end + on_arm do + if Hardware::CPU.is_64_bit? + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_arm64.tar.gz" + sha256 "27f7fdf29cb91d784f265125c980eae644d3f92ae42ee243b36d331e6b4512ad" + + def install + bin.install "ctrlc" + end + end + end + 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 From efd38cc9633159f7ed92801eaf9d6d342681a8c4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 05:47:28 +0000 Subject: [PATCH 3/4] Refactor formula to remove code duplication Co-authored-by: jsbroks <24920936+jsbroks@users.noreply.github.com> --- Formula/ctrlc.rb | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Formula/ctrlc.rb b/Formula/ctrlc.rb index 49aacaf..f1408e1 100644 --- a/Formula/ctrlc.rb +++ b/Formula/ctrlc.rb @@ -12,18 +12,10 @@ class Ctrlc < Formula on_intel do url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Darwin_x86_64.tar.gz" sha256 "190a8f07698e6b9e9aaa4cbe2fcd041166852132832e9ec51349885aa820c17d" - - def install - bin.install "ctrlc" - end end on_arm do url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Darwin_arm64.tar.gz" sha256 "a3968b2dfbf3789044127b533cfefa8bca1231d37c9b069b49742296c7027f72" - - def install - bin.install "ctrlc" - end end end @@ -32,24 +24,20 @@ def install if Hardware::CPU.is_64_bit? url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_x86_64.tar.gz" sha256 "9a0b2bac9fc6d49de10e5de951116b89306024d826ba858f30d92167bfccf6d8" - - def install - bin.install "ctrlc" - end end end on_arm do if Hardware::CPU.is_64_bit? url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_arm64.tar.gz" sha256 "27f7fdf29cb91d784f265125c980eae644d3f92ae42ee243b36d331e6b4512ad" - - def install - bin.install "ctrlc" - end end end end + def install + bin.install "ctrlc" + end + test do system "#{bin}/ctrlc", "version" end From 099655e98ac9f47363d087a9d63de838d60f5857 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 05:48:40 +0000 Subject: [PATCH 4/4] Clean up formula and remove misleading comment Co-authored-by: jsbroks <24920936+jsbroks@users.noreply.github.com> --- Formula/ctrlc.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Formula/ctrlc.rb b/Formula/ctrlc.rb index f1408e1..5f74650 100644 --- a/Formula/ctrlc.rb +++ b/Formula/ctrlc.rb @@ -1,7 +1,6 @@ # typed: false # frozen_string_literal: true -# This file was generated by GoReleaser. DO NOT EDIT. class Ctrlc < Formula desc "CLI for ctrlplane - A deployment orchestration tool" homepage "https://github.com/ctrlplanedev/cli" @@ -21,16 +20,12 @@ class Ctrlc < Formula on_linux do on_intel do - if Hardware::CPU.is_64_bit? - url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_x86_64.tar.gz" - sha256 "9a0b2bac9fc6d49de10e5de951116b89306024d826ba858f30d92167bfccf6d8" - end + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_x86_64.tar.gz" + sha256 "9a0b2bac9fc6d49de10e5de951116b89306024d826ba858f30d92167bfccf6d8" end on_arm do - if Hardware::CPU.is_64_bit? - url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_arm64.tar.gz" - sha256 "27f7fdf29cb91d784f265125c980eae644d3f92ae42ee243b36d331e6b4512ad" - end + url "https://github.com/ctrlplanedev/cli/releases/download/v0.15.2/ctrlc_Linux_arm64.tar.gz" + sha256 "27f7fdf29cb91d784f265125c980eae644d3f92ae42ee243b36d331e6b4512ad" end end