yq@3 3.4.1 (new formula)

Closes #67923.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
master
Mike Farah 2020-12-29 11:19:43 +11:00 committed by Carlo Cabrera
parent 9adfd41f52
commit 74179cc859
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 23 additions and 0 deletions

1
Aliases/yq@4 Symbolic link
View File

@ -0,0 +1 @@
../Formula/yq.rb

22
Formula/yq@3.rb Normal file
View File

@ -0,0 +1,22 @@
class YqAT3 < Formula
desc "Process YAML documents from the CLI - Version 3"
homepage "https://github.com/mikefarah/yq"
url "https://github.com/mikefarah/yq/archive/3.4.1.tar.gz"
sha256 "73259f808d589d11ea7a18e4cd38a2e98b518a6c2c178d1ec57d9c5942277cb1"
license "MIT"
keg_only :versioned_formula
disable! date: "2021-08-01", because: :unmaintained
depends_on "go" => :build
def install
system "go", "build", "-ldflags", "-s -w", *std_go_args, "-o", bin/"yq"
end
test do
assert_equal "key: cat", shell_output("#{bin}/yq n key cat").chomp
assert_equal "cat", pipe_output("#{bin}/yq r - key", "key: cat", 0).chomp
end
end