commands: sort external commands by name
Closes Homebrew/homebrew#44125. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
036aab567d
commit
366440b5bb
@ -39,6 +39,7 @@ module Homebrew
|
|||||||
def external_commands
|
def external_commands
|
||||||
paths.flat_map { |p| Dir["#{p}/brew-*"] }.
|
paths.flat_map { |p| Dir["#{p}/brew-*"] }.
|
||||||
map { |f| File.basename(f, ".rb")[5..-1] }.
|
map { |f| File.basename(f, ".rb")[5..-1] }.
|
||||||
reject { |f| f =~ /\./ }
|
reject { |f| f =~ /\./ }.
|
||||||
|
sort
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user