apainintheneck 8bee0555b9 cask/info: send missing args after removing openstruct
This seems like it was a bug before the recent change to remove
OpenStruct from `Homebrew::CLI::Args` but it was failing silently
before. Now we pass the args to the `Cask::Info.info` method so
that when they eventually reach the `Utils::Analytics.output_analytics`
method they are present as expected.

Example error fragment:

```console
$ set -e HOMEBREW_NO_ANALYTICS
$ brew info iterm2 --cask --verbose
==> iterm2: 3.5.10 (auto_updates)
https://iterm2.com/
Installed
/usr/local/Caskroom/iterm2/3.5.4 (91.7MB)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/i/iterm2.rb
==> Name
iTerm2
==> Description
Terminal emulator as alternative to Apple's Terminal app
==> Artifacts
iTerm.app (App)
Error: undefined method `analytics?' for an instance of Homebrew::CLI::Args
/usr/local/Homebrew/Library/Homebrew/utils/analytics.rb:248:in `output_analytics'
/usr/local/Homebrew/Library/Homebrew/utils/analytics.rb:342:in `cask_output'
/usr/local/Homebrew/Library/Homebrew/cask/info.rb:39:in `info'
```
2024-12-11 23:24:22 -08:00
..
2024-09-04 22:54:25 +02:00
2024-12-08 10:28:10 -08:00
2024-08-20 00:13:23 +00:00
2024-12-08 10:28:10 -08:00
2024-12-08 14:29:44 -05:00
2024-12-08 10:28:10 -08:00
2024-12-11 11:04:55 -08:00
2024-12-07 19:09:57 +00:00
2024-11-05 16:04:31 -08:00
2024-09-05 03:37:25 +01:00
2024-10-15 10:39:10 +02:00
2024-10-02 10:03:12 -07:00
2024-10-02 10:03:12 -07:00
2024-11-05 16:44:12 +00:00
2024-09-26 14:32:55 -04:00
2024-11-26 14:09:13 -08:00
2024-09-07 14:45:30 +02:00
2024-09-26 14:48:32 -04:00
2024-11-22 21:04:51 -08:00
2024-12-06 11:25:51 -08:00
2024-12-07 19:09:57 +00:00
2024-10-07 19:45:48 -07:00
2024-10-05 12:18:29 -07:00
2024-12-11 11:04:55 -08:00
2024-10-31 15:35:58 +08:00
2024-09-26 16:19:11 -04:00
2024-12-05 14:01:37 +00:00
2024-09-04 22:54:21 +02:00
2024-09-17 12:43:28 +09:00
2024-12-07 10:35:33 -08:00
2024-10-05 12:18:29 -07:00
2024-11-06 09:11:33 +00:00
2024-09-25 16:49:46 +08:00
2024-10-26 17:32:41 +08:00
2024-09-27 12:31:59 -04:00

Homebrew Ruby API

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