commands: helper for official external commands.

This commit is contained in:
Mike McQuaid 2020-03-11 12:17:25 +00:00
parent f63d2d7887
commit 7a08691100
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -100,6 +100,14 @@ module Commands
find_commands HOMEBREW_DEV_CMD_PATH
end
def official_external_commands_paths
%w[bundle services].map do |cmd|
tap = Tap.fetch("Homebrew/#{cmd}")
tap.install unless tap.installed?
external_ruby_v2_cmd_path(cmd)
end
end
def internal_commands
find_internal_commands(HOMEBREW_CMD_PATH).map(&:to_s)
end