commands: developer not development commands.

This commit is contained in:
Mike McQuaid 2016-09-07 20:08:51 +01:00
parent 71881fd7a6
commit 9514d1f8f5
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ module Homebrew
def commands
if ARGV.include? "--quiet"
cmds = internal_commands + external_commands
cmds += internal_development_commands
cmds += internal_developer_commands
cmds += HOMEBREW_INTERNAL_COMMAND_ALIASES.keys if ARGV.include? "--include-aliases"
puts_columns cmds.sort
else
@ -19,8 +19,8 @@ module Homebrew
# Find commands in Homebrew/dev-cmd
if ARGV.homebrew_developer?
puts
puts "Built-in development commands"
puts_columns internal_development_commands
puts "Built-in developer commands"
puts_columns internal_developer_commands
end
# Find commands in the path
@ -36,7 +36,7 @@ module Homebrew
find_internal_commands HOMEBREW_LIBRARY_PATH/"cmd"
end
def internal_development_commands
def internal_developer_commands
find_internal_commands HOMEBREW_LIBRARY_PATH/"dev-cmd"
end

View File

@ -29,8 +29,8 @@ class CommandsTests < Homebrew::TestCase
refute cmds.include?("rbdevcmd"), "Dev commands shouldn't be included"
end
def test_internal_development_commands
cmds = Homebrew.internal_development_commands
def test_internal_developer_commands
cmds = Homebrew.internal_developer_commands
assert cmds.include?("rbdevcmd"), "Ruby commands files should be recognized"
assert cmds.include?("shdevcmd"), "Shell commands files should be recognized"
refute cmds.include?("rbcmd"), "Non-dev commands shouldn't be included"