Class: Homebrew::Cmd::Log Private

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

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.

Defined Under Namespace

Classes: Args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#argsHomebrew::Cmd::Log::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.



10
# File 'sorbet/rbi/dsl/homebrew/cmd/log.rbi', line 10

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.



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'cmd/log.rb', line 39

def run
  # As this command is simplifying user-run commands then let's just use a
  # user path, too.
  ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s

  if args.no_named?
    git_log(HOMEBREW_REPOSITORY)
  else
    path = T.must(args.named.to_paths.first)
    tap = Tap.from_path(path)
    git_log path.dirname, path, tap
  end
end