Class: Homebrew::Cmd::Missing Private

Inherits:
AbstractCommand show all
Defined in:
sorbet/rbi/dsl/homebrew/cmd/missing.rbi,
cmd/missing.rb

Overview

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

DO NOT EDIT MANUALLY This is an autogenerated file for dynamic methods in Homebrew::Cmd::Missing. Please instead update this file by running bin/tapioca dsl Homebrew::Cmd::Missing.

Defined Under Namespace

Classes: Args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, dev_cmd?, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#argsHomebrew::Cmd::Missing::Args

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.



9
# File 'sorbet/rbi/dsl/homebrew/cmd/missing.rbi', line 9

def args; end

#runvoid

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.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'cmd/missing.rb', line 26

def run
  return unless HOMEBREW_CELLAR.exist?

  ff = if args.no_named?
    Formula.installed.sort
  else
    args.named.to_resolved_formulae.sort
  end

  ff.each do |f|
    missing = f.missing_dependencies(hide: args.hide)
    next if missing.empty?

    Homebrew.failed = true
    print "#{f}: " if ff.size > 1
    puts missing.join(" ")
  end
end