Sam Ford 403b0bf3f1
contributions: resolve type errors
This updates the type signature for `#scan_repositories` to address a
runtime type error and to reflect the actual return type.

The logic in `#scan_repositories` to check for unsupported
repositories leads to a type error, as `#ofail` has a void return
type. To resolve this, I moved the repository verification code into
`#run` (after `repos` is defined but before it's used) and used
`#odie`, so the command will exit early with an error.

While I was at it, I updated the type for the `repos` parameter to
not be `nilable`, as it shouldn't be `nil` based on how we're
handling `repos` in `#run`.
2024-07-18 15:40:10 -04:00
..
2024-07-04 12:08:01 -04:00
2024-07-14 08:49:39 -04:00
2024-07-17 14:48:53 -04:00
2024-05-23 00:11:53 +00:00
2024-07-14 15:08:37 -04:00
2024-07-15 17:48:47 -04:00
2024-05-23 17:15:43 +01:00
2024-06-11 02:59:31 +01:00
2024-05-02 09:40:09 +02:00
2024-07-18 08:51:44 -07:00
2024-06-14 12:22:02 +01:00
2024-07-14 09:03:18 -04:00
2024-07-18 16:17:40 +00:00
2024-05-23 17:15:43 +01:00
2024-07-13 11:43:17 -04:00
2024-07-14 08:49:39 -04:00
2024-07-18 12:06:37 -04:00
2024-07-15 17:48:47 -04:00
2024-05-01 11:35:21 +02:00
2024-07-14 08:49:39 -04:00
2024-07-04 01:47:13 -04:00
2024-05-01 11:35:21 +02:00
2024-06-11 23:03:53 +01:00
2024-05-02 09:40:09 +02:00
2024-05-01 11:35:21 +02:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-05-01 11:35:21 +02:00
2024-05-01 11:35:21 +02:00
2024-07-18 16:17:40 +00:00
2024-07-14 14:11:42 -04:00
2024-06-30 02:35:29 -04:00
2024-05-23 17:15:43 +01:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-05-17 14:25:54 +09:00
2024-05-17 12:38:16 +09:00
2024-07-14 08:49:39 -04:00
2024-05-01 11:35:21 +02:00
2024-05-13 08:48:41 -04:00
2024-07-15 17:48:47 -04:00
2024-05-01 11:35:21 +02:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-06-30 23:05:29 -04:00
2024-05-31 15:49:12 -07:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-07-14 08:49:39 -04:00
2024-06-11 23:03:53 +01: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!