brew/Library/Homebrew/cask/uninstall.rb
2024-04-26 19:04:20 +02:00

19 lines
428 B
Ruby

# typed: true
# frozen_string_literal: true
module Cask
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
Installer.new(cask, binaries:, force:, verbose:).uninstall
end
end
end
end