mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
22 lines
573 B
Ruby
22 lines
573 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module Services
|
|
module Commands
|
|
module Stop
|
|
TRIGGERS = %w[stop unload terminate term t u].freeze
|
|
|
|
sig {
|
|
params(targets: T::Array[Services::FormulaWrapper],
|
|
verbose: T.nilable(T::Boolean),
|
|
no_wait: T.nilable(T::Boolean),
|
|
max_wait: T.nilable(Float)).void
|
|
}
|
|
def self.run(targets, verbose:, no_wait:, max_wait:)
|
|
Services::Cli.check(targets)
|
|
Services::Cli.stop(targets, verbose:, no_wait:, max_wait:)
|
|
end
|
|
end
|
|
end
|
|
end
|