diff options
| author | Jack Nagel | 2014-02-28 11:06:41 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-02-28 11:07:55 -0600 |
| commit | d0f43ad3673edc39d52a2868ce1a0caff27813c1 (patch) | |
| tree | 1776d05999e03d4da8d3deae2d9f526d76f2689f | |
| parent | 479f4bc7cd731a481bde9beb9dc21a09e1494a17 (diff) | |
| download | brew-d0f43ad3673edc39d52a2868ce1a0caff27813c1.tar.bz2 | |
Remove "brew info <URL>"
Closes Homebrew/homebrew#27076.
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 3 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 9 | ||||
| -rw-r--r-- | share/man/man1/brew.1 | 4 |
3 files changed, 0 insertions, 16 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index a51d0cd5d..5643a952d 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -148,9 +148,6 @@ Note that these flags should only appear after a command. To view formula history locally: `brew log -p <formula>`. - * `info` <URL>: - Print the name and version that will be detected for <URL>. - * `install [--debug] [--env=<std|super>] [--ignore-dependencies] [--only-dependencies] [--fresh] [--cc=<compiler>] [--build-from-source] [--devel|--HEAD]` <formula>: Install <formula>. diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 508efd6ff..d88cd0b12 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -28,8 +28,6 @@ module Homebrew extend self elsif HOMEBREW_CELLAR.exist? puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}" end - elsif valid_url ARGV[0] - info_formula Formula.factory(ARGV.shift) else ARGV.named.each do |f| begin @@ -158,11 +156,4 @@ module Homebrew extend self end deps_status * ", " end - - private - - def valid_url u - u[0..6] == 'http://' or u[0..7] == 'https://' or u[0..5] == 'ftp://' - end - end diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 70175cbdd..1197ba20c 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -170,10 +170,6 @@ Open a browser to the GitHub History page for formula \fIformula\fR\. To view formula history locally: \fBbrew log \-p <formula>\fR\. . .TP -\fBinfo\fR \fIURL\fR -Print the name and version that will be detected for \fIURL\fR\. -. -.TP \fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-fresh] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR Install \fIformula\fR\. . |
