Isabell (Issy) Long 4a5b02661a
[Linux] Don't prompt users to brew cask install
- I tried to install `keybase`, thinking I'd get the CLI. On Linux,
  casks don't work, yet I was still prompted to `brew cask install
  keybase`. When I tried that (just to make sure), I got the "casks are
  only supported on MacOS" error.
- This change makes it so we don't prompt people to install casks if
  they're on platforms other than MacOS.

Before:

```
╭─issyl0@grus /home/linuxbrew/.linuxbrew/Homebrew ‹master›
╰─ $ brew install keybase
Error: No available formula with the name "keybase"
Found a cask named "keybase" instead.
```

After:

```
Error: No available formula with the name "keybase"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
```
2019-05-25 15:44:46 +01:00
..
2019-02-27 14:02:46 +00:00
2019-05-18 13:23:08 +01:00
2019-05-12 07:43:23 +01:00
2019-05-03 16:58:11 +02:00
2019-05-18 13:23:08 +01:00
2019-05-18 13:23:08 +01:00
2019-05-20 16:58:14 +01:00
2019-04-30 09:19:18 +01:00
2019-04-20 14:07:29 +09:00
2019-04-30 09:19:18 +01:00
2019-05-03 16:58:11 +02:00
2019-04-30 08:44:10 +01:00
2019-04-20 13:27:36 +09:00
2019-04-30 09:19:18 +01:00
2019-03-28 21:15:50 +00:00
2019-04-30 09:19:18 +01:00
2019-04-20 13:27:36 +09:00

Homebrew's Formula API

This is the 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!