mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
16 lines
288 B
Ruby
16 lines
288 B
Ruby
![]() |
#: * `where` <formulae>:
|
||
|
#: echo location of the specified <formulae> to stdout
|
||
|
|
||
|
require "formula"
|
||
|
|
||
|
module Homebrew
|
||
|
module_function
|
||
|
|
||
|
def where
|
||
|
raise FormulaUnspecifiedError if ARGV.named.empty?
|
||
|
ARGV.resolved_formulae.each do |f|
|
||
|
puts "#{f.path}\n"
|
||
|
end
|
||
|
end
|
||
|
end
|