brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Dependency.expand

Expand the dependencies of dependent recursively, optionally yielding
[dependent, dep] pairs to allow callers to apply arbitrary filters to
the list.
The default filter, which is applied when a block is not given, omits
optionals and recommendeds based on what the dependent has asked for.

Source | Google | Stack overflow

Edit

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

cd brew

open Library/Homebrew/dependency.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Dependency-expand-for-pr


# Commit to git

git add Library/Homebrew/dependency.rbgit commit -m "better docs for Dependency.expand"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Dependency-expand-for-pr

hub pull-request


# Celebrate!