2018-09-17 03:45:59 +02:00

18 lines
330 B
Ruby

#: * `untap` <tap>:
#: Remove a tapped repository.
module Homebrew
module_function
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
ARGV.named.each do |tapname|
tap = Tap.fetch(tapname)
raise "untapping #{tap} is not allowed" if tap.core_tap?
tap.uninstall
end
end
end