Class: Cask::Cmd Private

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Context
Defined in:
cask/cmd.rb,
cask/cmd/zap.rb,
cask/cmd/info.rb,
cask/cmd/list.rb,
cask/cmd/audit.rb,
cask/cmd/fetch.rb,
cask/cmd/install.rb,
cask/cmd/upgrade.rb,
cask/cmd/reinstall.rb,
cask/cmd/uninstall.rb,
cask/cmd/abstract_command.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.

Implementation of the brew cask command-line interface.

Defined Under Namespace

Classes: AbstractCommand, Audit, Fetch, Info, Install, List, Reinstall, Uninstall, Upgrade, Zap

Class Method Summary collapse

Methods included from Context

current, current=, #debug?, #quiet?, #verbose?, #with_context

Class Method Details

.parser(&block) ⇒ Object

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.



32
33
34
35
36
37
38
# File 'cask/cmd.rb', line 32

def self.parser(&block)
  Homebrew::CLI::Parser.new do
    instance_eval(&block) if block

    cask_options
  end
end