
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
14 lines
270 B
Ruby
14 lines
270 B
Ruby
require "tap"
|
|
|
|
module Homebrew
|
|
def untap
|
|
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
|
|
|
|
ARGV.named.each do |tapname|
|
|
tap = Tap.fetch(tapname)
|
|
raise "Homebrew/homebrew is not allowed" if tap.core_tap?
|
|
tap.uninstall
|
|
end
|
|
end
|
|
end
|