Last active
December 18, 2016 15:49
-
-
Save ToQoz/9d451513ed19e8d1cc20ba87a4b426b3 to your computer and use it in GitHub Desktop.
インストール済みの formula のなかで Xcode.app が必要なやつを知りたい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env ruby | |
require 'json' | |
JSON.parse(`brew info --json=v1 --installed`) | |
.select { |formula| | |
formula["requirements"].any? { |req| req["name"].downcase == "xcode" } | |
} | |
.each { |formula| | |
puts formula["name"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment