aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/untap.rb
blob: 2f1b8056ee3f728f38eb22286c181627bb509196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 "#{tap} is not allowed" if tap.core_tap?
      tap.uninstall
    end
  end
end