repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/linkage_cache_store.rb
Library/Homebrew/linkage_cache_store.rb
require "set" require "cache_store" # # `LinkageCacheStore` provides methods to fetch and mutate linkage-specific data used # by the `brew linkage` command. # class LinkageCacheStore < CacheStore # @param keg_path [String] # @param database [CacheStoreDatabase] # @return [nil] def initialize(keg_path, database...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/descriptions.rb
Library/Homebrew/descriptions.rb
require "formula" require "formula_versions" require "search" require "searchable" class Descriptions extend Homebrew::Search # Given a regex, find all formulae whose specified fields contain a match. def self.search(string_or_regex, field, cache_store) cache_store.populate_if_empty! results = case fie...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/utils.rb
Library/Homebrew/utils.rb
require "emoji" require "utils/analytics" require "utils/curl" require "utils/fork" require "utils/formatter" require "utils/git" require "utils/github" require "utils/inreplace" require "utils/link" require "utils/popen" require "utils/svn" require "utils/tty" require "tap_constants" require "time" def require?(path)...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/emoji.rb
Library/Homebrew/emoji.rb
module Emoji class << self def install_badge ENV["HOMEBREW_INSTALL_BADGE"] || "🍺" end def enabled? !ENV["HOMEBREW_NO_EMOJI"] end alias generic_enabled? enabled? end end require "extend/os/emoji"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/postinstall.rb
Library/Homebrew/postinstall.rb
old_trap = trap("INT") { exit! 130 } require "global" require "debrew" require "fcntl" require "socket" begin error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io) error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) trap("INT", old_trap) formula = ARGV.resolved_formulae.first formula.extend(...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/os.rb
Library/Homebrew/os.rb
module OS def self.mac? return false if ENV["HOMEBREW_TEST_GENERIC_OS"] RbConfig::CONFIG["host_os"].include? "darwin" end def self.linux? return false if ENV["HOMEBREW_TEST_GENERIC_OS"] RbConfig::CONFIG["host_os"].include? "linux" end ::OS_VERSION = ENV["HOMEBREW_OS_VERSION"] if OS.mac?...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cleaner.rb
Library/Homebrew/cleaner.rb
# Cleans a newly installed keg. # By default: # # * removes `.la` files # * removes `perllocal.pod` files # * removes `.packlist` files # * removes empty directories # * sets permissions on executables # * removes unresolved symlinks class Cleaner # Create a cleaner for the given formula def initialize(f) @f = ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat.rb
Library/Homebrew/compat.rb
require "compat/extend/os/mac/utils/bottles" require "compat/os/mac" require "compat/requirements/x11_requirement" require "compat/requirements/xcode_requirement" require "compat/cask" require "compat/download_strategy" require "compat/formula" require "compat/tap"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula_assertions.rb
Library/Homebrew/formula_assertions.rb
module Homebrew module Assertions require "test/unit/assertions" include ::Test::Unit::Assertions # Returns the output of running cmd, and asserts the exit status def shell_output(cmd, result = 0) ohai cmd output = `#{cmd}` assert_equal result, $CHILD_STATUS.exitstatus output ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/tab.rb
Library/Homebrew/tab.rb
require "cxxstdlib" require "ostruct" require "options" require "json" require "development_tools" require "extend/cachable" # Inherit from OpenStruct to gain a generic initialization method that takes a # hash and creates an attribute for each key and value. `Tab.new` probably # should not be called directly, instead...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cli_parser.rb
Library/Homebrew/cli_parser.rb
require "optparse" require "ostruct" require "set" module Homebrew module CLI class Parser attr_reader :processed_options def self.parse(args = ARGV, &block) new(&block).parse(args) end def self.global_options { quiet: [["-q", "--quiet"], :quiet, "Suppress an...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/patch.rb
Library/Homebrew/patch.rb
require "resource" require "erb" module Patch def self.create(strip, src, &block) case strip when :DATA DATAPatch.new(:p1) when String StringPatch.new(:p1, strip) when Symbol case src when :DATA DATAPatch.new(strip) when String StringPatch.new(strip, src)...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/tap_constants.rb
Library/Homebrew/tap_constants.rb
# match taps' formulae, e.g. someuser/sometap/someformula HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}.freeze # match taps' casks, e.g. someuser/sometap/somecask HOMEBREW_TAP_CASK_REGEX = %r{^([\w-]+)/([\w-]+)/([a-z0-9\-]+)$}.freeze # match taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/download_strategy.rb
Library/Homebrew/download_strategy.rb
require "json" require "rexml/document" require "time" require "unpack_strategy" require "lazy_object" require "cgi" class AbstractDownloadStrategy extend Forwardable include FileUtils module Pourable def stage ohai "Pouring #{basename}" super end end attr_reader :cache, :cached_locatio...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/search.rb
Library/Homebrew/search.rb
require "searchable" require "description_cache_store" module Homebrew module Search def query_regexp(query) if m = query.match(%r{^/(.*)/$}) Regexp.new(m[1]) else query end rescue RegexpError raise "#{query} is not a valid regex." end def search_descriptions(...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/install_renamed.rb
Library/Homebrew/install_renamed.rb
module InstallRenamed def install_p(_, new_basename) super do |src, dst| if src.directory? dst.install(src.children) next else append_default_if_different(src, dst) end end end def cp_path_sub(pattern, replacement) super do |src, dst| append_default_if_...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/help.rb
Library/Homebrew/help.rb
HOMEBREW_HELP = <<~EOS.freeze Example usage: brew search [TEXT|/REGEX/] brew info [FORMULA...] brew install FORMULA... brew update brew upgrade [FORMULA...] brew uninstall FORMULA... brew list [FORMULA...] Troubleshooting: brew config brew doctor brew install --verbose --deb...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compilers.rb
Library/Homebrew/compilers.rb
# @private module CompilerConstants GNU_GCC_VERSIONS = %w[4.9 5 6 7 8].freeze GNU_GCC_REGEXP = /^gcc-(4\.9|[5-8])$/.freeze COMPILER_SYMBOL_MAP = { "gcc" => :gcc, "gcc-4.2" => :gcc_4_2, "clang" => :clang, "llvm_clang" => :llvm_clang, }.freeze COMPILERS = COMPILER_SYMBOL_MAP.valu...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/global.rb
Library/Homebrew/global.rb
require "English" require "json" require "json/add/exception" require "pathname" require "ostruct" require "pp" require_relative "load_path" require "active_support/core_ext/object/blank" require "active_support/core_ext/numeric/time" require "active_support/core_ext/array/access" require "active_support/i18n" requir...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/locale.rb
Library/Homebrew/locale.rb
class Locale class ParserError < StandardError end LANGUAGE_REGEX = /(?:[a-z]{2,3})/.freeze # ISO 639-1 or ISO 639-2 REGION_REGEX = /(?:[A-Z]{2}|\d{3})/.freeze # ISO 3166-1 or UN M.49 SCRIPT_REGEX = /(?:[A-Z][a-z]{3})/.freeze # ISO 15924 LOCALE_REGEX = /\A((?:#{LANGUAGE_REGEX}|#{REGION_REGEX}|#{S...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/rubocops.rb
Library/Homebrew/rubocops.rb
require_relative "load_path" require "rubocop-rspec" require "rubocops/formula_desc" require "rubocops/components_order" require "rubocops/components_redundancy" require "rubocops/dependency_order" require "rubocops/homepage" require "rubocops/text" require "rubocops/caveats" require "rubocops/checksum" require "ruboc...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/diagnostic.rb
Library/Homebrew/diagnostic.rb
require "keg" require "language/python" require "formula" require "version" require "development_tools" require "utils/shell" module Homebrew module Diagnostic def self.missing_deps(ff, hide = nil) missing = {} ff.each do |f| missing_dependencies = f.missing_dependencies(hide: hide) n...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/load_path.rb
Library/Homebrew/load_path.rb
require "pathname" HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s) $LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.to_s) end require "vendor/bundle-standalone/bundler/setup"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/messages.rb
Library/Homebrew/messages.rb
# A Messages object collects messages that may need to be displayed together # at the end of a multi-step `brew` command run. class Messages attr_reader :caveats, :formula_count, :install_times def initialize @caveats = [] @formula_count = 0 @install_times = [] end def record_caveats(f, caveats) ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/official_taps.rb
Library/Homebrew/official_taps.rb
OFFICIAL_CASK_TAPS = %w[ cask versions ].freeze OFFICIAL_CMD_TAPS = { "homebrew/bundle" => ["bundle"], (OS.mac? ? "homebrew/test-bot" : "linuxbrew/test-bot") => ["test-bot"], "homebrew/services" => ["services"], }.freeze DEPRECATED_OFFI...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/tap.rb
Library/Homebrew/tap.rb
require "extend/cachable" require "readall" require "description_cache_store" # A {Tap} is used to extend the formulae provided by Homebrew core. # Usually, it's synced with a remote git repository. And it's likely # a GitHub repository with the name of `user/homebrew-repo`. In such # case, `user/repo` will be used as...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/fetch.rb
Library/Homebrew/fetch.rb
module Homebrew module Fetch module_function def fetch_bottle?(f) return true if ARGV.force_bottle? && f.bottle return false unless f.bottle && f.pour_bottle? return false if ARGV.build_formula_from_source?(f) return false unless f.bottle.compatible_cellar? true end end e...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/pkg_version.rb
Library/Homebrew/pkg_version.rb
require "version" class PkgVersion include Comparable RX = /\A(.+?)(?:_(\d+))?\z/.freeze attr_reader :version, :revision def self.parse(path) _, version, revision = *path.match(RX) version = Version.create(version) new(version, revision.to_i) end def initialize(version, revision) @versi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/dependable.rb
Library/Homebrew/dependable.rb
require "options" module Dependable # `:run` and `:linked` are no longer used but keep them here to avoid them being # misused in future. RESERVED_TAGS = [:build, :optional, :recommended, :run, :test, :linked].freeze def build? tags.include? :build end def optional? tags.include? :optional end ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/PATH.rb
Library/Homebrew/PATH.rb
class PATH include Enumerable extend Forwardable def_delegator :@paths, :each def initialize(*paths) @paths = parse(*paths) end def prepend(*paths) @paths = parse(*paths, *@paths) self end def append(*paths) @paths = parse(*@paths, *paths) self end def insert(index, *paths) ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/system_config.rb
Library/Homebrew/system_config.rb
require "hardware" require "software_spec" require "rexml/document" require "development_tools" class SystemConfig class << self def clang @clang ||= if DevelopmentTools.installed? DevelopmentTools.clang_version else Version::NULL end end def clang_build @clang_bu...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formulary.rb
Library/Homebrew/formulary.rb
require "digest/md5" require "extend/cachable" # The Formulary is responsible for creating instances of {Formula}. # It is not meant to be used directly from formulae. module Formulary extend Cachable def self.formula_class_defined?(path) cache.key?(path) end def self.formula_class_get(path) cache.f...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/commands.rb
Library/Homebrew/commands.rb
module Commands def self.path(cmd) [ HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh", HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh", HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.rb", HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.rb", ].find(&:exist?) end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/lock_file.rb
Library/Homebrew/lock_file.rb
require "fcntl" class LockFile attr_reader :path def initialize(name) @name = name.to_s @path = HOMEBREW_LOCKS/"#{@name}.lock" @lockfile = nil end def lock @path.parent.mkpath create_lockfile return if @lockfile.flock(File::LOCK_EX | File::LOCK_NB) raise OperationInProgressError,...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula_cellar_checks.rb
Library/Homebrew/formula_cellar_checks.rb
require "utils/shell" module FormulaCellarChecks def check_env_path(bin) # warn the user if stuff was installed outside of their PATH return unless bin.directory? return if bin.children.empty? prefix_bin = (HOMEBREW_PREFIX/bin.basename) return unless prefix_bin.directory? prefix_bin = prefi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/dependency_collector.rb
Library/Homebrew/dependency_collector.rb
require "dependency" require "dependencies" require "requirement" require "requirements" require "extend/cachable" ## A dependency is a formula that another formula needs to install. ## A requirement is something other than a formula that another formula ## needs to be present. This includes external language modules,...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/software_spec.rb
Library/Homebrew/software_spec.rb
require "resource" require "checksum" require "version" require "options" require "build_options" require "dependency_collector" require "utils/bottles" require "patch" require "compilers" require "global" require "os/mac/version" class SoftwareSpec extend Forwardable PREDEFINED_OPTIONS = { universal: Option....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cxxstdlib.rb
Library/Homebrew/cxxstdlib.rb
require "compilers" class CxxStdlib include CompilerConstants class CompatibilityError < StandardError def initialize(formula, dep, stdlib) super <<~EOS #{formula.full_name} dependency #{dep.name} was built with a different C++ standard library (#{stdlib.type_string} from #{stdlib.compil...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/linkage_checker.rb
Library/Homebrew/linkage_checker.rb
require "keg" require "formula" require "linkage_cache_store" class LinkageChecker attr_reader :undeclared_deps def initialize(keg, formula = nil, cache_db:, rebuild_cache: false) @keg = keg @formula = formula || resolve_formula(keg) @store = LinkageCacheStore.new(keg.to_s, cache_db) @system_dyli...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/dependencies.rb
Library/Homebrew/dependencies.rb
require "delegate" class Dependencies < DelegateClass(Array) def initialize(*args) super(args) end alias eql? == def optional select(&:optional?) end def recommended select(&:recommended?) end def build select(&:build?) end def required select(&:required?) end def defa...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/config.rb
Library/Homebrew/config.rb
unless ENV["HOMEBREW_BREW_FILE"] raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" end # Path to `bin/brew` main executable in `HOMEBREW_PREFIX` HOMEBREW_BREW_FILE = Pathname.new(ENV["HOMEBREW_BREW_FILE"]) class MissingEnvironmentVariables < RuntimeError; end def get_env_or_raise(env) u...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula.rb
Library/Homebrew/formula.rb
require "cache_store" require "formula_support" require "lock_file" require "formula_pin" require "hardware" require "utils/bottles" require "utils/shell" require "build_environment" require "build_options" require "formulary" require "software_spec" require "install_renamed" require "pkg_version" require "keg" require...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
true
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/keg.rb
Library/Homebrew/keg.rb
require "keg_relocate" require "language/python" require "lock_file" require "ostruct" class Keg class AlreadyLinkedError < RuntimeError def initialize(keg) super <<~EOS Cannot link #{keg.name} Another version is already linked: #{keg.linked_keg_record.resolved_path} EOS end end...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/lazy_object.rb
Library/Homebrew/lazy_object.rb
class LazyObject < Delegator def initialize(&callable) super(callable) end def __getobj__ return @__delegate__ if defined?(@__delegate__) @__delegate__ = @__callable__.call end def __setobj__(callable) @__callable__ = callable end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/build_options.rb
Library/Homebrew/build_options.rb
class BuildOptions # @private def initialize(args, options) @args = args @options = options end # True if a {Formula} is being built with a specific option # (which isn't named `with-*` or `without-*`). # @deprecated def include?(name) @args.include?("--#{name}") end # True if a {Formula...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/debrew.rb
Library/Homebrew/debrew.rb
require "mutex_m" require "debrew/irb" module Debrew extend Mutex_m Ignorable = Module.new module Raise def raise(*) super rescue Exception => e # rubocop:disable Lint/RescueException e.extend(Ignorable) super(e) unless Debrew.debug(e) == :ignore end alias fail raise end ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/install.rb
Library/Homebrew/install.rb
require "diagnostic" require "fileutils" require "hardware" require "development_tools" module Homebrew module Install module_function def check_cpu case Hardware::CPU.type when :ppc abort <<~EOS Sorry, Homebrew does not support your computer's CPU architecture. For P...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/dependency.rb
Library/Homebrew/dependency.rb
require "dependable" # A dependency on another Homebrew formula. class Dependency extend Forwardable include Dependable attr_reader :name, :tags, :env_proc, :option_names DEFAULT_ENV_PROC = proc {} def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_names = [name]) raise ArgumentError,...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula_support.rb
Library/Homebrew/formula_support.rb
# Used to track formulae that cannot be installed at the same time. FormulaConflict = Struct.new(:name, :reason) # Used to annotate formulae that duplicate macOS provided software # or cause conflicts when linked in. class KegOnlyReason attr_reader :reason def initialize(reason, explanation) @reason = reason ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/requirements.rb
Library/Homebrew/requirements.rb
require "requirement" require "requirements/arch_requirement" require "requirements/codesign_requirement" require "requirements/java_requirement" require "requirements/linux_requirement" require "requirements/macos_requirement" require "requirements/maximum_macos_requirement" require "requirements/osxfuse_requirement" ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/development_tools.rb
Library/Homebrew/development_tools.rb
# @private class DevelopmentTools class << self def locate(tool) # Don't call tools (cc, make, strip, etc.) directly! # Give the name of the binary you look for as a string to this method # in order to get the full path back as a Pathname. (@locate ||= {}).fetch(tool) do |key| @loc...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/style.rb
Library/Homebrew/style.rb
module Homebrew module Style module_function # Checks style for a list of files, printing simple RuboCop output. # Returns true if violations were found, false otherwise. def check_style_and_print(files, options = {}) check_style_impl(files, :print, options) end # Checks style for a li...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/build_environment.rb
Library/Homebrew/build_environment.rb
class BuildEnvironment def initialize(*settings) @settings = Set.new(*settings) end def merge(*args) @settings.merge(*args) self end def <<(o) @settings << o self end def std? @settings.include? :std end def userpaths? @settings.include? :userpaths end module DSL ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula_installer.rb
Library/Homebrew/formula_installer.rb
require "cxxstdlib" require "formula" require "keg" require "tab" require "utils/bottles" require "caveats" require "cleaner" require "formula_cellar_checks" require "install_renamed" require "debrew" require "sandbox" require "emoji" require "development_tools" require "cache_store" require "linkage_checker" require "...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/formula_creator.rb
Library/Homebrew/formula_creator.rb
require "digest" require "erb" module Homebrew class FormulaCreator attr_reader :url, :sha256, :desc, :homepage attr_accessor :name, :version, :tap, :path, :mode def url=(url) @url = url path = Pathname.new(url) if @name.nil? case url when %r{github\.com/(\S+)/(\S+)\.gi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/migrator.rb
Library/Homebrew/migrator.rb
require "lock_file" require "keg" require "tab" class Migrator class MigrationNeededError < RuntimeError def initialize(formula) super <<~EOS #{formula.oldname} was renamed to #{formula.name} and needs to be migrated. Please run `brew migrate #{formula.oldname}` EOS end end c...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/mktemp.rb
Library/Homebrew/mktemp.rb
# Performs `Formula#mktemp`'s functionality, and tracks the results. # Each instance is only intended to be used once. class Mktemp include FileUtils # Path to the tmpdir used in this run, as a Pathname. attr_reader :tmpdir def initialize(prefix = name, opts = {}) @prefix = prefix @retain = opts[:reta...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/download_strategy.rb
Library/Homebrew/compat/download_strategy.rb
require "download_strategy" # S3DownloadStrategy downloads tarballs from AWS S3. # To use it, add `:using => :s3` to the URL section of your # formula. This download strategy uses AWS access tokens (in the # environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`) # to sign the request. This strategy i...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/tap.rb
Library/Homebrew/compat/tap.rb
class Tap module Compat def initialize(user, repo) super return unless user == "caskroom" old_initial_revision_var = "HOMEBREW_UPDATE_BEFORE#{repo_var}" old_current_revision_var = "HOMEBREW_UPDATE_AFTER#{repo_var}" new_user = "Homebrew" new_repo = (repo == "cask") ? repo : "...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/formula.rb
Library/Homebrew/compat/formula.rb
class Formula module Compat # Run `scons` using a Homebrew-installed version rather than whatever is # in the `PATH`. # TODO: deprecate def scons(*args) odeprecated("scons", 'system "scons"') system Formulary.factory("scons").opt_bin/"scons", *args end # Run `make` 3.81 or newer....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/cask.rb
Library/Homebrew/compat/cask.rb
require "compat/cask/cache" require "compat/cask/cask_loader" require "compat/cask/caskroom" require "compat/cask/dsl" module Cask class << self module Compat def init Cache.delete_legacy_cache Caskroom.migrate_caskroom_from_repo_to_prefix Caskroom.migrate_legacy_caskroom ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/cask/dsl.rb
Library/Homebrew/compat/cask/dsl.rb
module Cask class DSL module Compat # TODO: can't delete this code until the merge of # https://github.com/Homebrew/brew/pull/4730 or an equivalent. def gpg(*) odisabled "the `gpg` stanza" end def license(*) odisabled "the `license` stanza" end def acce...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/cask/caskroom.rb
Library/Homebrew/compat/cask/caskroom.rb
module Cask module Caskroom class << self module Compat def migrate_legacy_caskroom return if path.exist? legacy_caskroom_path = Pathname.new("/opt/homebrew-cask/Caskroom") return if path == legacy_caskroom_path return unless legacy_caskroom_path.exist? ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/cask/cask_loader.rb
Library/Homebrew/compat/cask/cask_loader.rb
module Cask module CaskLoader class FromContentLoader; end class FromPathLoader < FromContentLoader module Compat private # TODO: can't delete this code until the merge of # https://github.com/Homebrew/brew/pull/4730 or an equivalent. def cask(header_token, **options, &...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/cask/cache.rb
Library/Homebrew/compat/cask/cache.rb
module Cask module Cache class << self module Compat def delete_legacy_cache legacy_cache = HOMEBREW_CACHE.join("Casks") return unless legacy_cache.exist? ohai "Deleting legacy cache at #{legacy_cache}" FileUtils.remove_entry_secure(legacy_cache) end ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/requirements/xcode_requirement.rb
Library/Homebrew/compat/requirements/xcode_requirement.rb
require "requirement" class XcodeRequirement < Requirement module Compat def initialize(tags = []) @version = if tags.first.to_s.match?(/(\d\.)+\d/) tags.shift else tags.find do |tag| next unless tag.to_s.match?(/(\d\.)+\d/) odisabled('depends_on :xcode => [..., "X...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/requirements/x11_requirement.rb
Library/Homebrew/compat/requirements/x11_requirement.rb
require "requirement" class X11Requirement < Requirement module Compat def initialize(tags = []) if tags.first.to_s.match?(/(\d\.)+\d/) odisabled('depends_on :x11 => "X.Y.Z"') end super(tags) end end prepend Compat end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/os/mac.rb
Library/Homebrew/compat/os/mac.rb
module OS module Mac class << self module Compat def prefer_64_bit? odeprecated("MacOS.prefer_64_bit?") Hardware::CPU.is_64_bit? end end prepend Compat end end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/compat/extend/os/mac/utils/bottles.rb
Library/Homebrew/compat/extend/os/mac/utils/bottles.rb
module Utils class Bottles class Collector module Compat private def tag_without_or_later(tag) return super unless tag.to_s.end_with?("_or_later") odisabled "`or_later` bottles", "bottles without `or_later` (or_later is implied now)" tag....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/command.rb
Library/Homebrew/cmd/command.rb
#: * `command` <cmd>: #: Display the path to the file which is used when invoking `brew` <cmd>. require "commands" require "cli_parser" module Homebrew module_function def command_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `command` <cmd> Display the path to the file whi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/gist-logs.rb
Library/Homebrew/cmd/gist-logs.rb
#: * `gist-logs` [`--new-issue`|`-n`] [`--private`|`-p`] <formula>: #: Upload logs for a failed build of <formula> to a new Gist. #: #: <formula> is usually the name of the formula to install, but it can be specified #: in several different ways. See [SPECIFYING FORMULAE](#specifying-formulae). #: #: If `-...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/readall.rb
Library/Homebrew/cmd/readall.rb
#: * `readall` [`--aliases`] [`--syntax`] [<taps>]: #: Import all formulae from specified <taps> (defaults to all installed taps). #: #: This can be useful for debugging issues across all formulae when making #: significant changes to `formula.rb`, testing the performance of loading #: all formulae or to d...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/--repository.rb
Library/Homebrew/cmd/--repository.rb
#: * `--repository`: #: Display where Homebrew's `.git` directory is located. #: #: * `--repository` <user>`/`<repo>: #: Display where tap <user>`/`<repo>'s directory is located. module Homebrew module_function def __repository if ARGV.named.empty? puts HOMEBREW_REPOSITORY else puts AR...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/tap-unpin.rb
Library/Homebrew/cmd/tap-unpin.rb
#: * `tap-unpin` <tap>: #: Unpin <tap> so its formulae are no longer prioritized. See also `tap-pin`. require "cli_parser" module Homebrew module_function def tap_unpin_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `tap-unpin` <tap> Unpin <tap> so its formulae are no longer...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/desc.rb
Library/Homebrew/cmd/desc.rb
#: * `desc` <formula>: #: Display <formula>'s name and one-line description. #: #: * `desc` [`--search`|`--name`|`--description`] (<text>|`/`<text>`/`): #: Search both name and description (`--search` or `-s`), just the names #: (`--name` or `-n`), or just the descriptions (`--description` or `-d`) for #: ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/doctor.rb
Library/Homebrew/cmd/doctor.rb
#: * `doctor`: #: Check your system for potential problems. Doctor exits with a non-zero status #: if any potential problems are found. Please note that these warnings are just #: used to help the Homebrew maintainers with debugging if you file an issue. If #: everything you use Homebrew for is working fin...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/tap-info.rb
Library/Homebrew/cmd/tap-info.rb
#: * `tap-info`: #: Display a brief summary of all installed taps. #: #: * `tap-info` (`--installed`|<taps>): #: Display detailed information about one or more <taps>. #: #: Pass `--installed` to display information on all installed taps. #: #: * `tap-info` `--json=`<version> (`--installed`|<taps>): #: P...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/uses.rb
Library/Homebrew/cmd/uses.rb
#: * `uses` [`--installed`] [`--recursive`] [`--include-build`] [`--include-test`] [`--include-optional`] [`--skip-recommended`] [`--devel`|`--HEAD`] <formulae>: #: Show the formulae that specify <formulae> as a dependency. When given #: multiple formula arguments, show the intersection of formulae that use #: ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/reinstall.rb
Library/Homebrew/cmd/reinstall.rb
#: * `reinstall` [`--display-times`] <formula>: #: Uninstall and then install <formula> (with existing install options). #: #: If `--display-times` is passed, install times for each formula are printed #: at the end of the run. #: #: If `HOMEBREW_INSTALL_CLEANUP` is set then remove previously installed ver...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/diy.rb
Library/Homebrew/cmd/diy.rb
#: * `diy` [`--name=`<name>] [`--version=`<version>]: #: Automatically determine the installation prefix for non-Homebrew software. #: #: Using the output from this command, you can install your own software into #: the Cellar and then link it into Homebrew's prefix with `brew link`. #: #: The options `--n...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/migrate.rb
Library/Homebrew/cmd/migrate.rb
#: * `migrate` [`--force`] <formulae>: #: Migrate renamed packages to new name, where <formulae> are old names of #: packages. #: #: If `--force` (or `-f`) is passed, then treat installed <formulae> and passed <formulae> #: like if they are from same taps and migrate them anyway. require "migrator" requir...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/home.rb
Library/Homebrew/cmd/home.rb
#: * `home`: #: Open Homebrew's own homepage in a browser. #: #: * `home` <formula>: #: Open <formula>'s homepage in a browser. require "cli_parser" module Homebrew module_function def home_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `home` [<formula>] Open <formula>'...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/cleanup.rb
Library/Homebrew/cmd/cleanup.rb
#: * `cleanup` [`--prune=`<days>] [`--dry-run`] [`-s`] [<formulae>|<casks>]: #: Remove stale lock files and outdated downloads for formulae and casks, #: and remove old versions of installed formulae. If arguments are specified, #: only do this for the specified formulae and casks. #: #: If `--prune=`<days...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/options.rb
Library/Homebrew/cmd/options.rb
#: * `options` [`--compact`] (`--all`|`--installed`|<formulae>): #: Display install options specific to <formulae>. #: #: If `--compact` is passed, show all options on a single line separated by #: spaces. #: #: If `--all` is passed, show options for all formulae. #: #: If `--installed` is passed, show ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/outdated.rb
Library/Homebrew/cmd/outdated.rb
#: * `outdated` [`--quiet`|`--verbose`|`--json=`<version>] [`--fetch-HEAD`]: #: Show formulae that have an updated version available. #: #: By default, version information is displayed in interactive shells, and #: suppressed otherwise. #: #: If `--quiet` is passed, list only the names of outdated brews (t...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/update-report.rb
Library/Homebrew/cmd/update-report.rb
#: @hide_from_man_page #: * `update_report` [`--preinstall`]: #: The Ruby implementation of `brew update`. Never called manually. require "formula_versions" require "migrator" require "formulary" require "descriptions" require "cleanup" require "description_cache_store" module Homebrew module_function def up...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/log.rb
Library/Homebrew/cmd/log.rb
#: * `log` [<git-log-options>] <formula> ...: #: Show the git log for the given formulae. Options that `git-log`(1) #: recognizes can be passed before the formula list. require "formula" module Homebrew module_function def log if ARGV.named.empty? git_log HOMEBREW_REPOSITORY else path ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/pin.rb
Library/Homebrew/cmd/pin.rb
#: * `pin` <formulae>: #: Pin the specified <formulae>, preventing them from being upgraded when #: issuing the `brew upgrade` <formulae> command. See also `unpin`. require "formula" require "cli_parser" module Homebrew module_function def pin_args Homebrew::CLI::Parser.new do usage_banner <<~EO...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/uninstall.rb
Library/Homebrew/cmd/uninstall.rb
#: * `uninstall`, `rm`, `remove` [`--force`] [`--ignore-dependencies`] <formula>: #: Uninstall <formula>. #: #: If `--force` (or `-f`) is passed, and there are multiple versions of <formula> #: installed, delete all installed versions. #: #: If `--ignore-dependencies` is passed, uninstalling won't fail, ev...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/--prefix.rb
Library/Homebrew/cmd/--prefix.rb
#: * `--prefix`: #: Display Homebrew's install path. *Default:* `/usr/local` on macOS and `/home/linuxbrew/.linuxbrew` on Linux #: #: * `--prefix` <formula>: #: Display the location in the cellar where <formula> is or would be installed. module Homebrew module_function def __prefix if ARGV.named.empty...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/prune.rb
Library/Homebrew/cmd/prune.rb
#: * `prune` [`--dry-run`]: #: Deprecated. Use `brew cleanup` instead. require "keg" require "cli_parser" require "cleanup" module Homebrew module_function def prune_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `prune` [<options>] Deprecated. Use `brew cleanup` instead. ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/postinstall.rb
Library/Homebrew/cmd/postinstall.rb
#: * `postinstall` <formula>: #: Rerun the post-install steps for <formula>. require "sandbox" require "formula_installer" require "cli_parser" module Homebrew module_function def postinstall_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `postinstall` <formula> Rerun the po...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/configure-shell.rb
Library/Homebrew/cmd/configure-shell.rb
#: * `configure-shell`: #: Configure the shell to include Homebrew into your PATH, MANPATH, and INFOPATH. #: A brew.env file will be created that will be sourced in your ~/.profile #: (or your .bash_profile or .zprofile - only existing files will be modified) module Homebrew module_function def configur...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/--env.rb
Library/Homebrew/cmd/--env.rb
#: * `--env` [`--shell=`(<shell>|`auto`)|`--plain`]: #: Show a summary of the Homebrew build environment as a plain list. #: #: Pass `--shell=`<shell> to generate a list of environment variables for the #: specified shell, or `--shell=auto` to detect the current shell. #: #: If the command's output is sent...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/untap.rb
Library/Homebrew/cmd/untap.rb
#: * `untap` <tap>: #: Remove a tapped repository. require "cli_parser" module Homebrew module_function def untap_args Homebrew::CLI::Parser.new do usage_banner <<~EOS `untap` <tap> Remove a tapped repository. EOS switch :debug end end def untap untap_args....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/missing.rb
Library/Homebrew/cmd/missing.rb
#: * `missing` [`--hide=`<hidden>] [<formulae>]: #: Check the given <formulae> for missing dependencies. If no <formulae> are #: given, check all installed brews. #: #: If `--hide=`<hidden> is passed, act as if none of <hidden> are installed. #: <hidden> should be a comma-separated list of formulae. #: #: ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/search.rb
Library/Homebrew/cmd/search.rb
#: * `search`, `-S`: #: Display all locally available formulae (including tapped ones). #: No online search is performed. #: #: * `search` `--casks`: #: Display all locally available casks (including tapped ones). #: No online search is performed. #: #: * `search` [`--desc`] (<text>|`/`<text>`/`): #: ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/link.rb
Library/Homebrew/cmd/link.rb
#: * `ln`, `link` [`--overwrite`] [`--dry-run`] [`--force`] <formula>: #: Symlink all of <formula>'s installed files into the Homebrew prefix. This #: is done automatically when you install formulae but can be useful for DIY #: installations. #: #: If `--overwrite` is passed, Homebrew will delete files whi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/help.rb
Library/Homebrew/cmd/help.rb
require "help" module Homebrew def help(cmd = nil, flags = {}) Help.help(cmd, flags) end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/cmd/info.rb
Library/Homebrew/cmd/info.rb
#: * `info`: #: Display brief statistics for your Homebrew installation. #: #: * `info` `--analytics` [`--days=`<days>] [`--category=`<category>]: #: Display Homebrew analytics data (provided neither `HOMEBREW_NO_ANALYTICS` #: or `HOMEBREW_NO_GITHUB_API` are set) #: #: The value for `days` must be `30`, `...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false