14 lines
259 B
Ruby
Raw Normal View History

require "tap"
2012-03-02 20:28:54 +00:00
module Homebrew
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 "#{tap} is not allowed" if tap.core_tap?
2015-11-07 16:25:34 +08:00
tap.uninstall
end
end
2012-03-02 20:28:54 +00:00
end