
Add the necessary changes for Sorbet `typed: strict` in more files. Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
26 lines
736 B
Ruby
26 lines
736 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "bundle/brewfile"
|
|
require "bundle/lister"
|
|
|
|
module Homebrew
|
|
module Bundle
|
|
module Commands
|
|
module List
|
|
sig {
|
|
params(global: T::Boolean, file: T.nilable(String), formulae: T::Boolean, casks: T::Boolean,
|
|
taps: T::Boolean, mas: T::Boolean, whalebrew: T::Boolean, vscode: T::Boolean).void
|
|
}
|
|
def self.run(global:, file:, formulae:, casks:, taps:, mas:, whalebrew:, vscode:)
|
|
parsed_entries = Brewfile.read(global:, file:).entries
|
|
Homebrew::Bundle::Lister.list(
|
|
parsed_entries,
|
|
formulae:, casks:, taps:, mas:, whalebrew:, vscode:,
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|