Skip to content

Commit

Permalink
Merge pull request #111 from ZhongRuoyu/dev-cmd
Browse files Browse the repository at this point in the history
lib/aliases: disallow aliases conflicting with dev cmds
  • Loading branch information
p-linnane authored Dec 7, 2024
2 parents 7a8ab4f + 80834ce commit 63a5e51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/aliases.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ module Aliases
path
end.freeze
RESERVED = (
Commands::HOMEBREW_INTERNAL_COMMAND_ALIASES.keys +
Dir["#{HOMEBREW_LIBRARY_PATH}/cmd/*.rb"].map { |cmd| File.basename(cmd, ".rb") } +
Commands.internal_commands +
Commands.internal_developer_commands +
Commands.internal_commands_aliases +
%w[alias unalias]
).freeze

Expand Down

0 comments on commit 63a5e51

Please sign in to comment.