Skip to content
Snippets Groups Projects
user avatar
Josh Hagins authored
Don't Repeat Yourself.
1d8e59b3
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Homebrew's Formula API

This is the (partially) documented public API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!