apply extend/os to Cask::cmd::install#install_casks
This commit is contained in:
parent
8fdf6aca11
commit
c066e940c4
@ -2,6 +2,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "cask_dependent"
|
||||
require "extend/os/cask/cmd/install"
|
||||
|
||||
module Cask
|
||||
class Cmd
|
||||
|
||||
4
Library/Homebrew/extend/os/cask/cmd/install.rb
Normal file
4
Library/Homebrew/extend/os/cask/cmd/install.rb
Normal file
@ -0,0 +1,4 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "extend/os/linux/cask/cmd/install" if OS.linux?
|
||||
29
Library/Homebrew/extend/os/linux/cask/cmd/install.rb
Normal file
29
Library/Homebrew/extend/os/linux/cask/cmd/install.rb
Normal file
@ -0,0 +1,29 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "cask_dependent"
|
||||
|
||||
module Cask
|
||||
class Cmd
|
||||
# Cask implementation of the `brew install` command.
|
||||
#
|
||||
# @api private
|
||||
class Install < AbstractCommand
|
||||
def self.install_casks(
|
||||
_casks,
|
||||
verbose: nil,
|
||||
force: nil,
|
||||
adopt: nil,
|
||||
binaries: nil,
|
||||
skip_cask_deps: nil,
|
||||
require_sha: nil,
|
||||
quarantine: nil,
|
||||
quiet: nil,
|
||||
zap: nil,
|
||||
dry_run: nil
|
||||
)
|
||||
odie "Installing casks is supported only on macOS"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user