aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 11:06:41 -0600
committerJack Nagel2014-02-28 11:07:55 -0600
commit9f30868ba1fe240a2885d221eb956b1991d1e5a3 (patch)
tree06499dc46d42af91e012677ad4ee76cf073b0307
parent2d47c3e448e32b9d594104b5ac18b333d36e3cb7 (diff)
downloadhomebrew-9f30868ba1fe240a2885d221eb956b1991d1e5a3.tar.bz2
Remove "brew info <URL>"
Closes #27076.
-rw-r--r--Library/Contributions/manpages/brew.1.md3
-rw-r--r--Library/Homebrew/cmd/info.rb9
-rw-r--r--share/man/man1/brew.14
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\.
.