Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tfocus 0.1.5 (new formula) #204566

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Formula/t/tfocus.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Tfocus < Formula
desc "Tool for selecting and executing terraform plan/apply on specific resources"
homepage "https://github.com/nwiizo/tfocus"
url "https://github.com/nwiizo/tfocus/archive/refs/tags/v0.1.5.tar.gz"
sha256 "cf8d841d170c551e8f669e8fe71b5c85f0f2b36623ca6e2b8189aa041e76b75d"
license "MIT"
head "https://github.com/nwiizo/tfocus.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b5dbfaf820e34ef9e6bb04d45a1d277fea9a27cda78fed88ae90f3686efa0006"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c72c12d7d0620fe84de30e04a49bdd1c98961891ec81267b95957c3dbc5dfbeb"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ae42614fc40aafade49f9d100c5062396a5ae898c69967234a0762103fa550bf"
sha256 cellar: :any_skip_relocation, sonoma: "0b997ef677047ba1e07f50d7bef51846e68c022fc7dfb73fcf1a6abc1f674654"
sha256 cellar: :any_skip_relocation, ventura: "fedfc7f38e939c9774d87f0a0323dbc998a4ff996d9bf871ac59c9c00e52050b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8fac1961de78a056730c0b3a0695287a27eb52bed318bd05bb5606b105a0ac1c"
end

depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args
end

test do
assert_match version.to_s, shell_output("#{bin}/tfocus --version")

output = shell_output("#{bin}/tfocus 2>&1", 1)
assert_match "No Terraform files found in the current directory", output
end
end
Loading