Class: Homebrew::Cmd::Log Private

Inherits:
AbstractCommand show all
Includes:
FileUtils
Defined in:
sorbet/rbi/dsl/homebrew/cmd/log.rbi,
cmd/log.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::Log. Please instead update this file by running bin/tapioca dsl Homebrew::Cmd::Log.

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::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.



9
# File 'sorbet/rbi/dsl/homebrew/cmd/log.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.



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