Module: Homebrew::Bundle::Lister Private

Defined in:
bundle/lister.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Class Method Summary collapse

Class Method Details

.list(entries, formulae:, casks:, taps:, mas:, vscode:, go:, cargo:, flatpak:) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • entries (Array<Homebrew::Bundle::Dsl::Entry>)
  • formulae (Boolean)
  • casks (Boolean)
  • taps (Boolean)
  • mas (Boolean)
  • vscode (Boolean)
  • go (Boolean)
  • cargo (Boolean)
  • flatpak (Boolean)


12
13
14
15
16
# File 'bundle/lister.rb', line 12

def self.list(entries, formulae:, casks:, taps:, mas:, vscode:, go:, cargo:, flatpak:)
  entries.each do |entry|
    puts entry.name if show?(entry.type, formulae:, casks:, taps:, mas:, vscode:, go:, cargo:, flatpak:)
  end
end