18 lines
330 B
Ruby
Raw Normal View History

2016-04-08 16:28:43 +02:00
#: * `untap` <tap>:
#: Remove a tapped repository.
module Homebrew
2016-09-26 01:44:51 +02:00
module_function
2012-03-02 20:28:54 +00:00
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
2015-06-08 18:05:58 +08:00
ARGV.named.each do |tapname|
tap = Tap.fetch(tapname)
raise "untapping #{tap} is not allowed" if tap.core_tap?
2018-09-17 02:45:00 +02:00
2015-11-07 16:25:34 +08:00
tap.uninstall
end
end
2012-03-02 20:28:54 +00:00
end