Merge pull request #17688 from Homebrew/boo-more-type-errors

formula_assertions: Fix type of `cmd` param in `shell_output`
This commit is contained in:
Issy Long 2024-07-12 16:43:15 -04:00 committed by GitHub
commit 9383cfa67b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ module Homebrew
# Returns the output of running cmd and asserts the exit status.
#
# @api public
sig { params(cmd: String, result: Integer).returns(String) }
sig { params(cmd: T.any(Pathname, String), result: Integer).returns(String) }
def shell_output(cmd, result = 0)
ohai cmd
output = `#{cmd}`