mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Some of the typing/`T.must` usage when moving the Homebrew/homebrew-services code to Homebrew/brew was not quite correct. Rather than trying to make everything `strict` and import at the same time: let's mostly loosen the typing to fix a few bugs and allow us to add more later.
27 lines
597 B
Ruby
27 lines
597 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "services/cli"
|
|
|
|
module Homebrew
|
|
module Services
|
|
module Commands
|
|
module Start
|
|
TRIGGERS = %w[start launch load s l].freeze
|
|
|
|
sig {
|
|
params(
|
|
targets: T::Array[Services::FormulaWrapper],
|
|
custom_plist: T.nilable(String),
|
|
verbose: T::Boolean,
|
|
).void
|
|
}
|
|
def self.run(targets, custom_plist, verbose:)
|
|
Services::Cli.check(targets)
|
|
Services::Cli.start(targets, custom_plist, verbose:)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|