
* Show pinned and keg-only as attributes, where pinned version is shown as well. * Use brackets instead of parentheses to distinguish formula attributes(e.g. keg-only) with spec attributes(e.g. bottled) * Don't show blank line for formula without homepage. * Don't show duplicated keg-only message which will be shown later in caveats. * Underline urls. * Remove unnecessary github_info return value check, which is always existed. Closes Homebrew/homebrew#46037. Signed-off-by: Xu Cheng <xucheng@me.com>
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!