2025-08-19 13:03:08 +01:00
|
|
|
# typed: strict
|
2025-03-18 17:38:37 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2025-03-24 21:55:47 +08:00
|
|
|
require "bundle/brewfile"
|
|
|
|
require "bundle/lister"
|
|
|
|
|
2025-03-18 17:38:37 +00:00
|
|
|
module Homebrew
|
|
|
|
module Bundle
|
|
|
|
module Commands
|
|
|
|
module List
|
2025-08-19 13:03:08 +01:00
|
|
|
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
|
|
|
|
}
|
2025-07-04 11:25:41 +01:00
|
|
|
def self.run(global:, file:, formulae:, casks:, taps:, mas:, whalebrew:, vscode:)
|
2025-03-18 17:38:37 +00:00
|
|
|
parsed_entries = Brewfile.read(global:, file:).entries
|
|
|
|
Homebrew::Bundle::Lister.list(
|
|
|
|
parsed_entries,
|
2025-07-04 11:25:41 +01:00
|
|
|
formulae:, casks:, taps:, mas:, whalebrew:, vscode:,
|
2025-03-18 17:38:37 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|