brew/Library/Homebrew/cmd/tap-unpin.rb
2016-10-02 00:24:47 +02:00

18 lines
357 B
Ruby

#: * `tap-unpin` <tap>:
#: Unpin <tap> so its formulae are no longer prioritized. See also `tap-pin`.
require "tap"
module Homebrew
module_function
def tap_unpin
ARGV.named.each do |name|
tap = Tap.fetch(name)
raise "unpinning #{tap} is not allowed" if tap.core_tap?
tap.unpin
ohai "Unpinned #{tap}"
end
end
end