brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

OS::Mac::CLT.installed?

Returns true even if outdated tools are installed, e.g.
tools from Xcode 4.x on 10.9

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/os/mac/xcode.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-OS--Mac--CLT-installed--for-pr


# Commit to git

git add Library/Homebrew/os/mac/xcode.rbgit commit -m "better docs for OS::Mac::CLT.installed?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-OS--Mac--CLT-installed--for-pr

hub pull-request


# Celebrate!