2025-03-18 17:38:37 +00:00
|
|
|
# typed: true # rubocop:todo Sorbet/StrictSigil
|
|
|
|
# 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-03-21 04:24:55 +00:00
|
|
|
def self.run(global:, file:, brews:, 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,
|
|
|
|
brews:, casks:, taps:, mas:, whalebrew:, vscode:,
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|