Class: Homebrew::Cmd::TapCmd Private

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

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::TapCmd::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/tap_cmd.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.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'cmd/tap.rb', line 51

def run
  if args.repair?
    Tap.installed.each do |tap|
      tap.link_completions_and_manpages
      tap.fix_remote_configuration
    end
  elsif args.no_named?
    puts Tap.installed.sort_by(&:name)
  else
    tap = Tap.fetch(args.named.first)
    begin
      tap.install clone_target:  args.named.second,
                  custom_remote: args.custom_remote?,
                  quiet:         args.quiet?,
                  verify:        args.eval_all? || Homebrew::EnvConfig.eval_all?,
                  force:         args.force?
    rescue TapRemoteMismatchError, TapNoCustomRemoteError => e
      odie e
    rescue TapAlreadyTappedError
      nil
    end
  end
end