Add signatures for cmd/--cache.
This commit is contained in:
parent
4560c06b7e
commit
1baf98ea69
@ -35,6 +35,7 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
|
||||
sig { void }
|
||||
def __cache
|
||||
args = __cache_args.parse
|
||||
|
||||
@ -60,6 +61,7 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
|
||||
sig { params(formula: Formula, args: CLI::Args).void }
|
||||
def print_formula_cache(formula, args:)
|
||||
if fetch_bottle?(formula, args: args)
|
||||
puts formula.bottle.cached_download
|
||||
@ -68,6 +70,7 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
|
||||
sig { params(cask: Cask::Cask).void }
|
||||
def print_cask_cache(cask)
|
||||
puts Cask::Download.new(cask).downloader.cached_location
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user