2016-04-17 09:21:02 +02:00
|
|
|
#: * `--repository`:
|
2017-06-15 17:39:57 -07:00
|
|
|
#: Display where Homebrew's `.git` directory is located.
|
2016-04-17 09:21:02 +02:00
|
|
|
#:
|
|
|
|
#: * `--repository` <user>`/`<repo>:
|
|
|
|
#: Display where tap <user>`/`<repo>'s directory is located.
|
|
|
|
|
2014-06-18 22:41:47 -05:00
|
|
|
module Homebrew
|
2016-09-26 01:44:51 +02:00
|
|
|
module_function
|
|
|
|
|
2010-09-11 20:22:54 +01:00
|
|
|
def __repository
|
2016-03-23 16:33:40 +08:00
|
|
|
if ARGV.named.empty?
|
|
|
|
puts HOMEBREW_REPOSITORY
|
|
|
|
else
|
|
|
|
puts ARGV.named.map { |tap| Tap.fetch(tap).path }
|
|
|
|
end
|
2010-09-11 20:22:54 +01:00
|
|
|
end
|
|
|
|
end
|