brew/Library/Homebrew/cmd/tap-unpin.rb
2019-01-30 21:39:28 +00:00

29 lines
519 B
Ruby

require "cli_parser"
module Homebrew
module_function
def tap_unpin_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`tap-unpin` <tap>
Unpin <tap> so its formulae are no longer prioritised. See also `tap-pin`.
EOS
switch :debug
end
end
def tap_unpin
tap_unpin_args.parse
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