2018-11-13 05:50:39 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class Fx < Formula
|
|
|
|
desc "Command-line JSON processing tool"
|
|
|
|
homepage "https://github.com/antonmedv/fx"
|
2018-12-08 09:44:55 +00:00
|
|
|
url "https://registry.npmjs.org/fx/-/fx-9.0.1.tgz"
|
|
|
|
sha256 "30230ee2f35ef17136401f584406ef6805f61473d92c349c6f6dfbc47b82c5c3"
|
2018-11-13 05:50:39 +00:00
|
|
|
|
2018-11-13 07:41:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-12-08 09:49:30 +00:00
|
|
|
sha256 "b901b7c82509b6d7be7543002c49b43b1e4eb49bf11670047e521f016f87651f" => :mojave
|
|
|
|
sha256 "7b818ada3439c79515987598a739a12634a61f99eb630090d59a734b071f7c50" => :high_sierra
|
|
|
|
sha256 "ac39d58f3c0c2d23c102f9165203f9b3f0f7b52b5d3c1786c10b48c0626c591d" => :sierra
|
2018-11-13 07:41:50 +00:00
|
|
|
end
|
|
|
|
|
2018-11-13 05:50:39 +00:00
|
|
|
depends_on "node"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "bar", shell_output("echo '{\"foo\": \"bar\"}' #{bin}/fx .foo")
|
|
|
|
end
|
|
|
|
end
|