service: provide formula accessor.

Use `f` because it's generally recognised as a formula and this
shouldn't be widely needed/used.
This commit is contained in:
Mike McQuaid 2022-08-16 08:35:33 +01:00
parent 5047d4249e
commit 59692b5bf4
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -28,6 +28,11 @@ module Homebrew
@service_block = block
end
sig { returns(Formula) }
def f
@formula
end
sig { params(command: T.nilable(T.any(T::Array[String], String, Pathname))).returns(T.nilable(Array)) }
def run(command = nil)
case T.unsafe(command)