brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

OS::Mac::CLT.version

Version string (a pretty long one) of the CLT package.
Note, that different ways to install the CLTs lead to different
version numbers.

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-version-for-pr


# Commit to git

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


# 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-version-for-pr

hub pull-request


# Celebrate!