diff options
| author | Mike McQuaid | 2017-08-24 11:17:31 +0100 |
|---|---|---|
| committer | GitHub | 2017-08-24 11:17:31 +0100 |
| commit | 8b7defb3ebf6dd16f8ed1d9003045477bde5da56 (patch) | |
| tree | f73b914fc2ce643ba5be7a6955739c60bf244876 /Library/Homebrew/cmd | |
| parent | 89f120f53c2dcfbe374de4a5930d0a4143e676fb (diff) | |
| parent | f0605f4a30ae1125ad2e3d8187a45af09b24def0 (diff) | |
| download | brew-8b7defb3ebf6dd16f8ed1d9003045477bde5da56.tar.bz2 | |
Merge pull request #3086 from MikeMcQuaid/audit-taps-shush
audit: don't output when searching taps.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 4a3e21971..acee9817f 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -102,11 +102,13 @@ module Homebrew odie "#{query} is not a valid regex" end - def search_taps(query) + def search_taps(query, silent: false) return [] if ENV["HOMEBREW_NO_GITHUB_API"] # Use stderr to avoid breaking parsed output - $stderr.puts Formatter.headline("Searching taps on GitHub...", color: :blue) + unless silent + $stderr.puts Formatter.headline("Searching taps on GitHub...", color: :blue) + end valid_dirnames = ["Formula", "HomebrewFormula", "Casks", "."].freeze matches = GitHub.search_code(user: ["Homebrew", "caskroom"], filename: query, extension: "rb") |
