brew/Library/Homebrew/cask/uninstall.rb

20 lines
468 B
Ruby
Raw Normal View History

2023-03-13 18:31:26 -07:00
# typed: true
# frozen_string_literal: true
module Cask
# @api private
class Uninstall
def self.uninstall_casks(*casks, binaries: nil, force: false, verbose: false)
require "cask/installer"
casks.each do |cask|
odebug "Uninstalling Cask #{cask}"
raise CaskNotInstalledError, cask if !cask.installed? && !force
2023-03-11 21:15:24 +09:00
Installer.new(cask, binaries: binaries, force: force, verbose: verbose).uninstall
end
end
end
end