aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/untap.rb
blob: 8f5d7de6eda6b9beea51815d0b81c1917b4f77dd (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 "untapping #{tap} is not allowed" if tap.core_tap?
      tap.uninstall
    end
  end
end