From 59692b5bf4410436eec5bddc3c3769a67836496a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 16 Aug 2022 08:35:33 +0100 Subject: [PATCH] service: provide formula accessor. Use `f` because it's generally recognised as a formula and this shouldn't be widely needed/used. --- Library/Homebrew/service.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/service.rb b/Library/Homebrew/service.rb index 3ef98c0792..87c7f54693 100644 --- a/Library/Homebrew/service.rb +++ b/Library/Homebrew/service.rb @@ -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)