Issy Long 69c31d275f
Only brew desc --search needs --eval-all
- It was suggested in https://github.com/Homebrew/brew/issues/ 16733 that
  `brew desc <formula_or_cask>` should work like `brew info <formula_or_cask>`
  and print the description of the package without needing `--eval-all`.
- Looking at the code, it seems like it's only searching that needs
  `--eval-all`, so limit the check to that.

Before:

```shell
$ brew desc hello
Error: `brew desc` needs `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!
```

After:

```shell
$ brew desc hello
hello: Program providing model for GNU coding standards and practices

$ brew desc --search hello
Error: Invalid usage: `brew desc --search` needs `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!

$ brew desc --search --eval-all hello
==> Formulae
dsh: Dancer's shell, or distributed shell
hello: Program providing model for GNU coding standards and practices
```
2024-04-17 23:54:45 +01:00
..
2024-04-02 12:19:14 -07:00
2024-04-01 15:53:56 -07:00
2024-04-01 15:56:06 -07:00
2024-04-01 15:58:07 -07:00
2024-04-01 16:00:47 -07:00
2024-04-03 09:12:47 -07:00
2024-04-02 12:19:14 -07:00
2024-03-29 18:53:07 -07:00
2024-03-29 18:53:07 -07:00
2024-03-29 18:53:07 -07:00
2024-03-29 18:53:07 -07:00
2024-03-29 18:53:08 -07:00
2024-03-29 18:53:08 -07:00
2024-03-29 18:53:08 -07:00
2024-03-29 18:53:08 -07:00
2024-03-30 09:36:47 -07:00
2024-03-30 16:16:52 -07:00
2024-03-30 16:24:11 -07:00
2024-04-01 09:15:58 -07:00
2024-04-01 09:15:58 -07:00
2024-04-01 09:15:58 -07:00
2024-04-01 09:15:58 -07:00
2024-04-01 09:42:31 -07:00
2024-04-01 09:44:14 -07:00
2024-04-01 10:05:02 -07:00
2024-04-01 10:12:52 -07:00
2024-04-02 12:19:14 -07:00
2024-04-01 11:43:52 -07:00
2024-04-01 10:15:28 -07:00
2024-04-01 11:47:18 -07:00
2024-04-01 11:48:40 -07:00
2024-04-01 11:58:35 -07:00
2024-04-01 12:01:37 -07:00