diff options
Diffstat (limited to 'Library/Homebrew/cmd/commands.rb')
| -rw-r--r-- | Library/Homebrew/cmd/commands.rb | 8 |
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 |
