aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/commands.rb
diff options
context:
space:
mode:
authorXu Cheng2015-09-10 21:20:34 +0800
committerXu Cheng2015-09-12 19:15:45 +0800
commitce390b9bd9648f1edf856df55e121c7d75cfdedc (patch)
tree179fb47ce96852c991f99205a0828959d6f76fc7 /Library/Homebrew/cmd/commands.rb
parentfa9c7cdc8ebb3c526e23c602ebd9030d84a8f7a0 (diff)
downloadbrew-ce390b9bd9648f1edf856df55e121c7d75cfdedc.tar.bz2
add dev-cmd folder
Diffstat (limited to 'Library/Homebrew/cmd/commands.rb')
-rw-r--r--Library/Homebrew/cmd/commands.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/commands.rb b/Library/Homebrew/cmd/commands.rb
index 2bb18b3e0..b94ecca7d 100644
--- a/Library/Homebrew/cmd/commands.rb
+++ b/Library/Homebrew/cmd/commands.rb
@@ -20,9 +20,11 @@ module Homebrew
def internal_commands
with_directory = false
- (HOMEBREW_REPOSITORY/"Library/Homebrew/cmd").
- children(with_directory).
- map { |f| File.basename(f, ".rb") }
+ cmds = (HOMEBREW_LIBRARY_PATH/"cmd").children(with_directory).map { |f| File.basename(f, ".rb") }
+ if ARGV.homebrew_developer?
+ cmds += (HOMEBREW_LIBRARY_PATH/"dev-cmd").children(with_directory).map { |f| File.basename(f, ".rb") }
+ end
+ cmds
end
def external_commands