mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
19 lines
344 B
Ruby
19 lines
344 B
Ruby
#: * `untap` <tap>:
|
|
#: Remove a tapped repository.
|
|
|
|
require "tap"
|
|
|
|
module Homebrew
|
|
module_function
|
|
|
|
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
|