mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
18 lines
381 B
Ruby
18 lines
381 B
Ruby
#: * `--repository`:
|
|
#: Display where Homebrew's `.git` directory is located.
|
|
#:
|
|
#: * `--repository` <user>`/`<repo>:
|
|
#: Display where tap <user>`/`<repo>'s directory is located.
|
|
|
|
module Homebrew
|
|
module_function
|
|
|
|
def __repository
|
|
if ARGV.named.empty?
|
|
puts HOMEBREW_REPOSITORY
|
|
else
|
|
puts ARGV.named.map { |tap| Tap.fetch(tap).path }
|
|
end
|
|
end
|
|
end
|