source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/formulary.rb
Ruby
bsd-2-clause
47,751
main
40,191
# typed: strict # frozen_string_literal: true require "digest/sha2" require "cachable" require "tab" require "utils" require "utils/bottles" require "utils/output" require "utils/path" require "service" require "utils/curl" require "extend/hash/deep_transform_values" require "extend/hash/keys" require "tap" # The {Fo...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/formula.rb
Ruby
bsd-2-clause
47,751
main
165,629
# typed: strict # frozen_string_literal: true require "autobump_constants" require "cache_store" require "did_you_mean" require "keg_only_reason" require "lock_file" require "formula_pin" require "hardware" require "utils" require "utils/bottles" require "utils/gzip" require "utils/inreplace" require "utils/shebang" r...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/env_config.rb
Ruby
bsd-2-clause
47,751
main
38,493
# typed: strict # frozen_string_literal: true require "utils/output" module Homebrew # Helper module for querying Homebrew-specific environment variables. # # @api internal module EnvConfig include Utils::Output::Mixin extend Utils::Output::Mixin module_function ENVS = T.let({ HOMEBREW...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/on_system.rb
Ruby
bsd-2-clause
47,751
main
6,156
# typed: strict # frozen_string_literal: true require "simulate_system" module OnSystem ARCH_OPTIONS = [:intel, :arm].freeze BASE_OS_OPTIONS = [:macos, :linux].freeze ALL_OS_OPTIONS = T.let([*MacOSVersion::SYMBOLS.keys, :linux].freeze, T::Array[Symbol]) ALL_OS_ARCH_COMBINATIONS = T.let(ALL_OS_OPTIONS.product(...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/bundle.rb
Ruby
bsd-2-clause
47,751
main
5,575
# typed: strict # frozen_string_literal: true require "English" module Homebrew module Bundle class << self sig { params(args_upgrade_formula: T.nilable(String)).void } def upgrade_formulae=(args_upgrade_formula) @upgrade_formulae = args_upgrade_formula.to_s.split(",") end sig {...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/exceptions.rb
Ruby
bsd-2-clause
47,751
main
28,506
# typed: strict # frozen_string_literal: true # We intentionally want to have many exceptions in this file. # rubocop:disable Style/OneClassPerFile require "utils/output" # Raised when a command is used wrong. # # @api internal class UsageError < RuntimeError sig { returns(T.nilable(String)) } attr_reader :reaso...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cxxstdlib.rb
Ruby
bsd-2-clause
47,751
main
891
# typed: strong # frozen_string_literal: true require "compilers" # Combination of C++ standard library and compiler. class CxxStdlib sig { params(type: T.nilable(Symbol), compiler: T.any(Symbol, String)).returns(CxxStdlib) } def self.create(type, compiler) raise ArgumentError, "Invalid C++ stdlib type: #{typ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/keg.rb
Ruby
bsd-2-clause
47,751
main
25,099
# typed: strict # frozen_string_literal: true require "cachable" require "keg_relocate" require "language/python" require "lock_file" require "pkg_version" require "utils/output" # Installation prefix of a formula. class Keg extend T::Generic extend Cachable include Utils::Output::Mixin # Sorbet type members...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/api_hashable.rb
Ruby
bsd-2-clause
47,751
main
1,951
# typed: strict # frozen_string_literal: true # Used to substitute common paths with generic placeholders when generating JSON for the API. module APIHashable sig { void } def generating_hash! return if generating_hash? # Apply monkeypatches for API generation @old_homebrew_prefix = T.let(HOMEBREW_PRE...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/test_bot.rb
Ruby
bsd-2-clause
47,751
main
4,740
# typed: strict # frozen_string_literal: true require "test_bot/step" require "test_bot/test_runner" require "date" require "json" require "development_tools" require "formula" require "formula_installer" require "os" require "tap" require "utils" require "utils/bottles" module Homebrew module TestBot module_...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/keg_relocate.rb
Ruby
bsd-2-clause
47,751
main
16,068
# typed: strict # frozen_string_literal: true require "utils/output" class Keg extend Utils::Output::Mixin PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@" CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@" REPOSITORY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@" LIBRARY_PLACEHOLDER = "@@HOMEBREW_LIBRARY@@" PERL_PLACEHOLDER...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/download_strategy.rb
Ruby
bsd-2-clause
47,751
main
55,171
# typed: strict # frozen_string_literal: true require "json" require "time" require "unpack_strategy" require "lock_file" require "system_command" require "utils/output" # Need to define this before requiring Mechanize to avoid: # uninitialized constant Mechanize # rubocop:disable Lint/EmptyClass class Mechanize; e...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/pypi_packages.rb
Ruby
bsd-2-clause
47,751
main
863
# typed: strict # frozen_string_literal: true # Helper class for `pypi_packages` DSL. # @api internal class PypiPackages sig { returns(T.nilable(String)) } attr_reader :package_name sig { returns(T::Array[String]) } attr_reader :extra_packages sig { returns(T::Array[String]) } attr_reader :exclude_packag...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/formula_auditor.rb
Ruby
bsd-2-clause
47,751
main
53,300
# typed: strict # frozen_string_literal: true require "deprecate_disable" require "formula_versions" require "formula_name_cask_token_auditor" require "resource_auditor" require "utils" require "utils/shared_audits" require "utils/output" require "utils/git" require "style" require "tap_auditor" module Homebrew # A...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/attestation.rb
Ruby
bsd-2-clause
47,751
main
12,098
# typed: strict # frozen_string_literal: true require "date" require "json" require "utils/popen" require "utils/github/api" require "exceptions" require "system_command" require "utils/output" module Homebrew module Attestation extend SystemCommand::Mixin extend Utils::Output::Mixin # @api private ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/Gemfile
Ruby
bsd-2-clause
47,751
main
2,651
# frozen_string_literal: true source "https://rubygems.org" # The default case (no envs), should always be a restrictive bound on the lowest supported minor version. # This is the branch that Dependabot will use. if ENV.fetch("HOMEBREW_USE_RUBY_FROM_PATH", "").empty? ruby "~> 4.0.0" else ruby ">= 4.0.0" end # di...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/source_location.rb
Ruby
bsd-2-clause
47,751
main
495
# typed: strict # frozen_string_literal: true module Homebrew # A location in source code. class SourceLocation sig { returns(Integer) } attr_reader :line sig { returns(T.nilable(Integer)) } attr_reader :column sig { params(line: Integer, column: T.nilable(Integer)).void } def initialize(...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/tap.rb
Ruby
bsd-2-clause
47,751
main
48,717
# typed: strict # frozen_string_literal: true require "api" require "commands" require "settings" require "utils/output" # A {Tap} is used to encapsulate Homebrew formulae, casks and custom commands. # Usually, it's synced with a remote Git repository. And it's likely # a GitHub repository with the name of `user/home...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/macos_version.rb
Ruby
bsd-2-clause
47,751
main
4,326
# typed: strong # frozen_string_literal: true require "version" # A macOS version. class MacOSVersion < Version # Raised when a macOS version is unsupported. class Error < RuntimeError sig { returns(T.nilable(T.any(String, Symbol))) } attr_reader :version sig { params(version: T.nilable(T.any(String,...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/ast_constants.rb
Ruby
bsd-2-clause
47,751
main
2,686
# typed: strict # frozen_string_literal: true require "macos_version" FORMULA_COMPONENT_PRECEDENCE_LIST = T.let([ [{ name: :include, type: :method_call }], [{ name: :desc, type: :method_call }], [{ name: :homepage, type: :method_call }], [{ name: :url, type: :method_call }], [{ name: :mirror, ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/service.rb
Ruby
bsd-2-clause
47,751
main
22,499
# typed: strict # frozen_string_literal: true require "ipaddr" require "on_system" require "utils/service" module Homebrew # The {Service} class implements the DSL methods used in a formula's # `service` block and stores related instance variables. Most of these methods # also return the related instance variab...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/formula_installer.rb
Ruby
bsd-2-clause
47,751
main
57,126
# typed: strict # frozen_string_literal: true require "formula" require "keg" require "tab" require "utils/bottles" require "caveats" require "cleaner" require "formula_cellar_checks" require "install_renamed" require "sandbox" require "development_tools" require "cache_store" require "linkage_checker" require "messag...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/developer.rb
Ruby
bsd-2-clause
47,751
main
2,314
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class Developer < AbstractCommand cmd_args do description <<~EOS Control Homebrew's developer mode. When developer mode is enabled, `brew update` will update Homebrew to the late...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/pin.rb
Ruby
bsd-2-clause
47,751
main
875
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" module Homebrew module Cmd class Pin < AbstractCommand cmd_args do description <<~EOS Pin the specified <formula>, preventing them from being upgraded when issuing the `brew upgrade` <for...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/doctor.rb
Ruby
bsd-2-clause
47,751
main
2,599
# typed: strict # frozen_string_literal: true require "abstract_command" require "diagnostic" require "cask/caskroom" module Homebrew module Cmd class Doctor < AbstractCommand cmd_args do description <<~EOS Check your system for potential problems. Will exit with a non-zero status ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/uses.rb
Ruby
bsd-2-clause
47,751
main
7,312
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "cask/caskroom" require "dependencies_helpers" module Homebrew module Cmd # `brew uses foo bar` returns formulae that use both foo and bar # If you want the union, run the command twice and concatenate the res...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/help.rb
Ruby
bsd-2-clause
47,751
main
454
# typed: strong # frozen_string_literal: true require "abstract_command" require "help" module Homebrew module Cmd class HelpCmd < AbstractCommand cmd_args do description <<~EOS Outputs the usage instructions for `brew` <command>. Equivalent to `brew --help` <command>. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/options.rb
Ruby
bsd-2-clause
47,751
main
2,203
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "options" module Homebrew module Cmd class OptionsCmd < AbstractCommand cmd_args do description <<~EOS Show install options specific to <formula>. EOS switch "--compact", ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/unalias.rb
Ruby
bsd-2-clause
47,751
main
435
# typed: strict # frozen_string_literal: true require "abstract_command" require "aliases/aliases" module Homebrew module Cmd class Unalias < AbstractCommand cmd_args do description <<~EOS Remove aliases. EOS named_args :alias, min: 1 end sig { override.void...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/install.rb
Ruby
bsd-2-clause
47,751
main
21,638
# typed: strict # frozen_string_literal: true require "abstract_command" require "cask/config" require "cask/installer" require "cask/upgrade" require "cask_dependent" require "missing_formula" require "formula_installer" require "development_tools" require "install" require "cleanup" require "upgrade" module Homebr...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--cellar.rb
Ruby
bsd-2-clause
47,751
main
861
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class Cellar < AbstractCommand sig { override.returns(String) } def self.command_name = "--cellar" cmd_args do description <<~EOS Display Homebrew's Cellar path. *Default:* `$...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--caskroom.rb
Ruby
bsd-2-clause
47,751
main
817
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class Caskroom < AbstractCommand sig { override.returns(String) } def self.command_name = "--caskroom" cmd_args do description <<~EOS Display Homebrew's Caskroom path. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/deps.rb
Ruby
bsd-2-clause
47,751
main
16,877
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "cask/caskroom" require "dependencies_helpers" module Homebrew module Cmd class Deps < AbstractCommand include DependenciesHelpers class DepsCombineMode < T::Enum enums do # enum val...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/untap.rb
Ruby
bsd-2-clause
47,751
main
3,372
# typed: strict # frozen_string_literal: true require "abstract_command" require "utils" module Homebrew module Cmd class Untap < AbstractCommand cmd_args do description <<~EOS Remove a tapped formula repository. EOS switch "-f", "--force", description: "Un...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/analytics.rb
Ruby
bsd-2-clause
47,751
main
1,384
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class Analytics < AbstractCommand cmd_args do description <<~EOS Control Homebrew's anonymous aggregate user behaviour analytics. Read more at <https://docs.brew.sh/Analytics>. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/services.rb
Ruby
bsd-2-clause
47,751
main
8,675
# typed: strict # frozen_string_literal: true require "abstract_command" require "services/system" require "services/commands/list" require "services/commands/cleanup" require "services/commands/info" require "services/commands/restart" require "services/commands/run" require "services/commands/start" require "service...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/readall.rb
Ruby
bsd-2-clause
47,751
main
2,441
# typed: strict # frozen_string_literal: true require "abstract_command" require "readall" require "env_config" module Homebrew module Cmd class ReadallCmd < AbstractCommand cmd_args do description <<~EOS Import all items from the specified <tap>, or from all installed taps if none is pr...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/update.rb
Ruby
bsd-2-clause
47,751
main
1,121
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Update < AbstractCommand include ShellCommand cmd_args do description <<~EOS Fetch the newest version of Homebrew and all formulae from GitHub using `g...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/list.rb
Ruby
bsd-2-clause
47,751
main
12,578
# typed: strict # frozen_string_literal: true require "abstract_command" require "metafiles" require "formula" require "cli/parser" require "cask/list" require "system_command" require "tab" module Homebrew module Cmd class List < AbstractCommand include SystemCommand::Mixin cmd_args do des...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/formulae.rb
Ruby
bsd-2-clause
47,751
main
322
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Formulae < AbstractCommand include ShellCommand cmd_args do description "List all locally installable formulae including short names." end end end en...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/unlink.rb
Ruby
bsd-2-clause
47,751
main
1,065
# typed: strict # frozen_string_literal: true require "abstract_command" require "unlink" module Homebrew module Cmd class UnlinkCmd < AbstractCommand cmd_args do description <<~EOS Remove symlinks for <formula> from Homebrew's prefix. This can be useful for temporarily disabli...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/vendor-install.rb
Ruby
bsd-2-clause
47,751
main
384
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class VendorInstall < AbstractCommand include ShellCommand cmd_args do description <<~EOS Install Homebrew's portable Ruby. EOS named_args :...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/pyenv-sync.rb
Ruby
bsd-2-clause
47,751
main
3,405
# typed: strict # frozen_string_literal: true require "abstract_command" require "fileutils" require "keg" module Homebrew module Cmd class PyenvSync < AbstractCommand cmd_args do description <<~EOS Create symlinks for Homebrew's installed Python versions in `~/.pyenv/versions`. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/cleanup.rb
Ruby
bsd-2-clause
47,751
main
2,688
# typed: strict # frozen_string_literal: true require "abstract_command" require "cleanup" module Homebrew module Cmd class CleanupCmd < AbstractCommand cmd_args do days = Homebrew::EnvConfig::ENVS[:HOMEBREW_CLEANUP_MAX_AGE_DAYS]&.dig(:default) description <<~EOS Remove stale loc...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/migrate.rb
Ruby
bsd-2-clause
47,751
main
1,417
# typed: strict # frozen_string_literal: true require "abstract_command" require "migrator" require "cask/migrator" module Homebrew module Cmd class Migrate < AbstractCommand cmd_args do description <<~EOS Migrate renamed packages to new names, where <formula> are old names of ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/bundle.rb
Ruby
bsd-2-clause
47,751
main
16,864
# typed: strict # frozen_string_literal: true require "abstract_command" require "etc" require "bundle/dsl" require "bundle/extensions" module Homebrew module Cmd class Bundle < AbstractCommand sig { params(args: Args, extension: T.class_of(Homebrew::Bundle::Extension)).returns(T::Boolean) } def sel...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/config.rb
Ruby
bsd-2-clause
47,751
main
530
# typed: strict # frozen_string_literal: true require "abstract_command" require "system_config" module Homebrew module Cmd class Config < AbstractCommand cmd_args do description <<~EOS Show Homebrew and system configuration info useful for debugging. If you file a bug report, ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--prefix.rb
Ruby
bsd-2-clause
47,751
main
3,501
# typed: strict # frozen_string_literal: true require "abstract_command" require "fileutils" module Homebrew module Cmd class Prefix < AbstractCommand include FileUtils UNBREWED_EXCLUDE_FILES = %w[.DS_Store].freeze UNBREWED_EXCLUDE_PATHS = %w[ */.keepme .github/* bin/b...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/completions.rb
Ruby
bsd-2-clause
47,751
main
1,224
# typed: strict # frozen_string_literal: true require "abstract_command" require "completions" module Homebrew module Cmd class CompletionsCmd < AbstractCommand cmd_args do description <<~EOS Control whether Homebrew automatically links external tap shell completion files. Read...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/postinstall.rb
Ruby
bsd-2-clause
47,751
main
831
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula_installer" module Homebrew module Cmd class Postinstall < AbstractCommand cmd_args do description <<~EOS Rerun the post-install steps for <formula>. EOS named_args :installed_formul...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/docs.rb
Ruby
bsd-2-clause
47,751
main
401
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class Docs < AbstractCommand cmd_args do description <<~EOS Open Homebrew's online documentation at <#{HOMEBREW_DOCS_WWW}> in a browser. EOS end sig { override.void } ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/update-report.rb
Ruby
bsd-2-clause
47,751
main
33,727
# typed: strict # frozen_string_literal: true require "abstract_command" require "migrator" require "formulary" require "cask/cask_loader" require "cask/migrator" require "descriptions" require "cleanup" require "description_cache_store" require "settings" require "reinstall" require "version" module Homebrew modul...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/update-if-needed.rb
Ruby
bsd-2-clause
47,751
main
512
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class UpdateIfNeeded < AbstractCommand include ShellCommand cmd_args do description <<~EOS Runs `brew update --auto-update` only if needed. This is...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/home.rb
Ruby
bsd-2-clause
47,751
main
1,524
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" module Homebrew module Cmd class Home < AbstractCommand cmd_args do description <<~EOS Open a <formula> or <cask>'s homepage in a browser, or open Homebrew's own homepage if no argument i...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--repository.rb
Ruby
bsd-2-clause
47,751
main
554
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Repository < AbstractCommand include ShellCommand sig { override.returns(String) } def self.command_name = "--repository" cmd_args do description <<...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--env.rb
Ruby
bsd-2-clause
47,751
main
1,637
# typed: strict # frozen_string_literal: true require "abstract_command" require "extend/ENV" require "build_environment" require "utils/shell" module Homebrew module Cmd class Env < AbstractCommand sig { override.returns(String) } def self.command_name = "--env" cmd_args do descripti...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--version.rb
Ruby
bsd-2-clause
47,751
main
500
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Version < AbstractCommand include ShellCommand sig { override.returns(String) } def self.command_name = "--version" cmd_args do description <<~EOS ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/source.rb
Ruby
bsd-2-clause
47,751
main
5,091
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "utils/curl" module Homebrew module Cmd class Source < AbstractCommand cmd_args do description <<~EOS Open a <formula>'s source repository in a browser, or open Homebrew's own rep...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/unpin.rb
Ruby
bsd-2-clause
47,751
main
700
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" module Homebrew module Cmd class Unpin < AbstractCommand cmd_args do description <<~EOS Unpin <formula>, allowing them to be upgraded by `brew upgrade` <formula>. See also `pin`. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/update-reset.rb
Ruby
bsd-2-clause
47,751
main
531
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class UpdateReset < AbstractCommand include ShellCommand cmd_args do description <<~EOS Fetch and reset Homebrew and all tap repositories (or any specified <...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/desc.rb
Ruby
bsd-2-clause
47,751
main
2,953
# typed: strict # frozen_string_literal: true require "abstract_command" require "descriptions" require "search" require "description_cache_store" module Homebrew module Cmd class Desc < AbstractCommand cmd_args do description <<~EOS Display <formula>'s name and one-line description. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/uninstall.rb
Ruby
bsd-2-clause
47,751
main
3,886
# typed: strict # frozen_string_literal: true require "abstract_command" require "keg" require "formula" require "diagnostic" require "migrator" require "cask/cask_loader" require "cask/exceptions" require "cask/installer" require "cask/uninstall" require "uninstall" module Homebrew module Cmd class UninstallCm...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/fetch.rb
Ruby
bsd-2-clause
47,751
main
7,612
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "fetch" require "cask/download" require "download_queue" module Homebrew module Cmd class FetchCmd < AbstractCommand include Fetch FETCH_MAX_TRIES = 5 cmd_args do description <<~EOS ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/link.rb
Ruby
bsd-2-clause
47,751
main
4,658
# typed: strict # frozen_string_literal: true require "abstract_command" require "caveats" require "unlink" module Homebrew module Cmd class Link < AbstractCommand cmd_args do description <<~EOS Symlink all of <formula>'s installed files into Homebrew's prefix. This is done aut...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/shellenv.rb
Ruby
bsd-2-clause
47,751
main
1,341
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Shellenv < AbstractCommand include ShellCommand cmd_args do description <<~EOS Valid shells: bash|csh|fish|pwsh|sh|tcsh|zsh Print export sta...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/autoremove.rb
Ruby
bsd-2-clause
47,751
main
631
# typed: strict # frozen_string_literal: true require "abstract_command" require "cleanup" module Homebrew module Cmd class Autoremove < AbstractCommand cmd_args do description <<~EOS Uninstall formulae that were only installed as a dependency of another formula and are now no longer nee...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/tap.rb
Ruby
bsd-2-clause
47,751
main
2,572
# typed: strict # frozen_string_literal: true require "abstract_command" require "tap" module Homebrew module Cmd class TapCmd < AbstractCommand cmd_args do usage_banner "`tap` [<options>] [<user>`/`<repo>] [<URL>]" description <<~EOS Tap a formula repository. If no arg...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/info.rb
Ruby
bsd-2-clause
47,751
main
25,617
# typed: strict # frozen_string_literal: true require "abstract_command" require "missing_formula" require "caveats" require "options" require "formula" require "formula_pin" require "keg" require "tab" require "json" require "cask/cask_loader" require "utils/spdx" require "deprecate_disable" require "api" module Hom...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/alias.rb
Ruby
bsd-2-clause
47,751
main
1,205
# typed: strict # frozen_string_literal: true require "abstract_command" require "aliases/aliases" module Homebrew module Cmd class Alias < AbstractCommand cmd_args do usage_banner "`alias` [`--edit`] [<alias>|<alias>=<command>]" description <<~EOS Show an alias's command. If no ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/tap-info.rb
Ruby
bsd-2-clause
47,751
main
3,352
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class TapInfo < AbstractCommand cmd_args do description <<~EOS Show detailed information about one or more <tap>s. If no <tap> names are provided, display brief statistics for al...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/search.rb
Ruby
bsd-2-clause
47,751
main
6,079
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "missing_formula" require "search" module Homebrew module Cmd class SearchCmd < AbstractCommand PACKAGE_MANAGERS = T.let({ alpine: ->(query) { "https://pkgs.alpinelinux.org/packages?name=#{query}"...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/outdated.rb
Ruby
bsd-2-clause
47,751
main
9,172
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "cask/caskroom" require "api" module Homebrew module Cmd class Outdated < AbstractCommand cmd_args do description <<~EOS List installed casks and formulae that have an updated version avail...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/nodenv-sync.rb
Ruby
bsd-2-clause
47,751
main
2,596
# typed: strict # frozen_string_literal: true require "abstract_command" require "fileutils" require "keg" module Homebrew module Cmd class NodenvSync < AbstractCommand cmd_args do description <<~EOS Create symlinks for Homebrew's installed NodeJS versions in `~/.nodenv/versions`. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--cache.rb
Ruby
bsd-2-clause
47,751
main
4,580
# typed: strict # frozen_string_literal: true require "abstract_command" require "fetch" require "cask/download" module Homebrew module Cmd class Cache < AbstractCommand include Fetch sig { override.returns(String) } def self.command_name = "--cache" cmd_args do description <<~...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/command.rb
Ruby
bsd-2-clause
47,751
main
571
# typed: strict # frozen_string_literal: true require "abstract_command" require "commands" module Homebrew module Cmd class Command < AbstractCommand cmd_args do description <<~EOS Display the path to the file being used when invoking `brew` <cmd>. EOS named_args :comma...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/version-install.rb
Ruby
bsd-2-clause
47,751
main
5,173
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "formulary" require "tap" require "utils/github" require "utils/user" module Homebrew module Cmd class VersionInstall < AbstractCommand DEFAULT_TAP_REPOSITORY = "versions" private_constant :DEFAULT_TAP...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/leaves.rb
Ruby
bsd-2-clause
47,751
main
2,610
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "cask_dependent" module Homebrew module Cmd class Leaves < AbstractCommand cmd_args do description <<~EOS List installed formulae that are not dependencies of another installed formula or c...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/--taps.rb
Ruby
bsd-2-clause
47,751
main
412
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class Taps < AbstractCommand include ShellCommand sig { override.returns(String) } def self.command_name = "--taps" cmd_args do description <<~EOS ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/log.rb
Ruby
bsd-2-clause
47,751
main
2,875
# typed: strict # frozen_string_literal: true require "abstract_command" require "fileutils" module Homebrew module Cmd class Log < AbstractCommand include FileUtils cmd_args do description <<~EOS Show the `git log` for <formula> or <cask>, or show the log for the Homebrew reposit...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/tab.rb
Ruby
bsd-2-clause
47,751
main
3,229
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "tab" module Homebrew module Cmd class TabCmd < AbstractCommand cmd_args do description <<~EOS Edit tab information for installed formulae or casks. This can be useful when you w...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/commands.rb
Ruby
bsd-2-clause
47,751
main
1,258
# typed: strict # frozen_string_literal: true require "abstract_command" module Homebrew module Cmd class CommandsCmd < AbstractCommand cmd_args do description <<~EOS Show lists of built-in and external commands. EOS switch "-q", "--quiet", description: "Li...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/missing.rb
Ruby
bsd-2-clause
47,751
main
1,200
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "diagnostic" module Homebrew module Cmd class Missing < AbstractCommand cmd_args do description <<~EOS Check the given <formula> kegs for missing dependencies. If no <formula> are ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/mcp-server.rb
Ruby
bsd-2-clause
47,751
main
668
# typed: strong # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class McpServerCmd < AbstractCommand # This is a shell command as MCP servers need a faster startup time # than a normal Homebrew Ruby command allows. include ShellComman...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/setup-ruby.rb
Ruby
bsd-2-clause
47,751
main
439
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" module Homebrew module Cmd class SetupRuby < AbstractCommand include ShellCommand cmd_args do description <<~EOS Installs and configures Homebrew's Ruby. If `command` is passed, it wil...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/reinstall.rb
Ruby
bsd-2-clause
47,751
main
11,743
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula_installer" require "development_tools" require "messages" require "install" require "reinstall" require "cleanup" require "cask/utils" require "cask/reinstall" require "upgrade" require "api" module Homebrew module Cmd cla...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/which-formula.rb
Ruby
bsd-2-clause
47,751
main
919
# typed: strict # frozen_string_literal: true # License: MIT # The license text can be found in Library/Homebrew/command-not-found/LICENSE require "abstract_command" require "api" require "shell_command" module Homebrew module Cmd class WhichFormula < AbstractCommand ENDPOINT = "internal/executables.txt"...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/rbenv-sync.rb
Ruby
bsd-2-clause
47,751
main
2,437
# typed: strict # frozen_string_literal: true require "abstract_command" require "fileutils" require "keg" module Homebrew module Cmd class RbenvSync < AbstractCommand cmd_args do description <<~EOS Create symlinks for Homebrew's installed Ruby versions in `~/.rbenv/versions`. ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/upgrade.rb
Ruby
bsd-2-clause
47,751
main
22,259
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula_installer" require "install" require "upgrade" require "cask/utils" require "cask/upgrade" require "api" require "reinstall" module Homebrew module Cmd class UpgradeCmd < AbstractCommand class FormulaeUpgradeContext ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/casks.rb
Ruby
bsd-2-clause
47,751
main
429
# typed: strict # frozen_string_literal: true require "abstract_command" require "shell_command" # This Ruby command exists to allow generation of completions for the Bash # version. It is not meant to be run. module Homebrew module Cmd class Casks < AbstractCommand include ShellCommand cmd_args do...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/gist-logs.rb
Ruby
bsd-2-clause
47,751
main
6,106
# typed: strict # frozen_string_literal: true require "abstract_command" require "formula" require "install" require "system_config" require "stringio" require "socket" module Homebrew module Cmd class GistLogs < AbstractCommand include Install cmd_args do description <<~EOS Uploa...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/cmd/command-not-found-init.rb
Ruby
bsd-2-clause
47,751
main
2,266
# typed: strict # frozen_string_literal: true # License: MIT # The license text can be found in Library/Homebrew/command-not-found/LICENSE require "abstract_command" require "utils/shell" module Homebrew module Cmd class CommandNotFoundInit < AbstractCommand cmd_args do description <<~EOS ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/language/python.rb
Ruby
bsd-2-clause
47,751
main
18,641
# typed: strict # frozen_string_literal: true require "utils" require "utils/output" module Language # Helper functions for Python formulae. # # @api public module Python extend ::Utils::Output::Mixin sig { params(python: T.any(String, Pathname)).returns(T.nilable(Version)) } def self.major_minor...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/language/php.rb
Ruby
bsd-2-clause
47,751
main
1,405
# typed: strict # frozen_string_literal: true module Language # Helper functions for PHP formulae. # # @api public module PHP # Helper module for replacing `php` shebangs. module Shebang extend T::Helpers requires_ancestor { Formula } module_function # A regex to match potent...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/language/perl.rb
Ruby
bsd-2-clause
47,751
main
1,516
# typed: strict # frozen_string_literal: true module Language # Helper functions for Perl formulae. # # @api public module Perl # Helper module for replacing `perl` shebangs. module Shebang extend T::Helpers requires_ancestor { Formula } module_function # A regex to match pot...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/language/node.rb
Ruby
bsd-2-clause
47,751
main
4,734
# typed: strict # frozen_string_literal: true require "utils/output" module Language # Helper functions for Node formulae. # # @api public module Node extend ::Utils::Output::Mixin sig { returns(String) } def self.npm_cache_config "cache=#{HOMEBREW_CACHE}/npm_cache" end sig { retur...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/language/java.rb
Ruby
bsd-2-clause
47,751
main
2,707
# typed: strict # frozen_string_literal: true module Language # Helper functions for Java formulae. # # @api public module Java sig { params(version: T.nilable(String)).returns(T.nilable(Formula)) } def self.find_openjdk_formula(version = nil) can_be_newer = version&.end_with?("+") version ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/aliases/aliases.rb
Ruby
bsd-2-clause
47,751
main
2,254
# typed: strict # frozen_string_literal: true require "aliases/alias" require "utils/output" module Homebrew module Aliases extend Utils::Output::Mixin RESERVED = T.let(( Commands.internal_commands + Commands.internal_developer_commands + Commands.internal_commands_aliases + ...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/aliases/alias.rb
Ruby
bsd-2-clause
47,751
main
3,208
# typed: strict # frozen_string_literal: true require "fileutils" require "utils/output" module Homebrew module Aliases class Alias include ::Utils::Output::Mixin sig { returns(String) } attr_accessor :name sig { returns(T.nilable(String)) } attr_accessor :command sig { pa...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/test_bot/setup.rb
Ruby
bsd-2-clause
47,751
main
647
# typed: strict # frozen_string_literal: true module Homebrew module TestBot class Setup < Test sig { params(args: Homebrew::Cmd::TestBotCmd::Args).returns(Step) } def run!(args:) test_header(:Setup) test "brew", "install-bundler-gems", "--add-groups=ast,audit,bottle,formula_test,liv...
github
Homebrew/brew
https://github.com/Homebrew/brew
Library/Homebrew/test_bot/test_cleanup.rb
Ruby
bsd-2-clause
47,751
main
6,416
# typed: strict # frozen_string_literal: true require "os" require "tap" module Homebrew module TestBot class TestCleanup < Test protected ALLOWED_TAPS = T.let([ CoreTap.instance.name, CoreCaskTap.instance.name, ].freeze, T::Array[String]) sig { params(repository: Strin...