aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothee Cour2017-02-08 00:12:50 -0800
committerTimothee Cour2017-02-11 16:38:06 -0800
commitac091437e5b2ae8ca21058cf47184f1788c8d697 (patch)
tree361f0afd2041ea7f4a026af68713715cc77c3e63
parentae829ed229395159adf6f1f17fb26518ec27fca6 (diff)
downloadbrew-ac091437e5b2ae8ca21058cf47184f1788c8d697.tar.bz2
renamed where to formula
-rw-r--r--Library/Homebrew/cmd/help.rb2
-rw-r--r--Library/Homebrew/dev-cmd/formula.rb (renamed from Library/Homebrew/dev-cmd/where.rb)4
-rw-r--r--completions/zsh/_brew2
-rw-r--r--docs/brew.1.html2
-rw-r--r--manpages/brew.18
5 files changed, 9 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb
index 70379314e..669f92ddd 100644
--- a/Library/Homebrew/cmd/help.rb
+++ b/Library/Homebrew/cmd/help.rb
@@ -15,7 +15,7 @@ Troubleshooting:
Developers:
brew create [URL [--no-fetch]]
- brew (where|edit) [FORMULA...]
+ brew (formula|edit) [FORMULA...]
http://docs.brew.sh/Formula-Cookbook.html
Further help:
diff --git a/Library/Homebrew/dev-cmd/where.rb b/Library/Homebrew/dev-cmd/formula.rb
index 63237301b..80008a354 100644
--- a/Library/Homebrew/dev-cmd/where.rb
+++ b/Library/Homebrew/dev-cmd/formula.rb
@@ -1,4 +1,4 @@
-#: * `where` <formulae>:
+#: * `formula` <formulae>:
#: echo location of the specified <formulae> to stdout
require "formula"
@@ -6,7 +6,7 @@ require "formula"
module Homebrew
module_function
- def where
+ def formula
raise FormulaUnspecifiedError if ARGV.named.empty?
ARGV.resolved_formulae.each do |f|
puts "#{f.path}\n"
diff --git a/completions/zsh/_brew b/completions/zsh/_brew
index 8b1ac2ede..5d3924357 100644
--- a/completions/zsh/_brew
+++ b/completions/zsh/_brew
@@ -88,6 +88,7 @@ __brew_common_commands() {
'doctor:audits your installation for common issues'
'edit:edit a formula'
'fetch:download formula resources to the cache'
+ 'formula:location of formulae'
'gist-logs:generate a gist of the full build logs'
'home:visit the homepage of a formula or the brew project'
'info:information about a formula'
@@ -120,7 +121,6 @@ __brew_common_commands() {
'update:fetch latest version of Homebrew and all formulae'
'upgrade:upgrade outdated formulae'
'uses:show formulae which depend on a formula'
- 'where:location of formulae'
'--cellar:brew cellar'
'--env:brew environment'
'--repository:brew repository'
diff --git a/docs/brew.1.html b/docs/brew.1.html
index e16b47412..58a1dccca 100644
--- a/docs/brew.1.html
+++ b/docs/brew.1.html
@@ -537,6 +537,7 @@ you to explicitly set the name and version of the package you are creating.</p>
the specified tap.</p></dd>
<dt class="flush"><code>edit</code></dt><dd><p>Open all of Homebrew for editing.</p></dd>
<dt><code>edit</code> <var>formula</var></dt><dd><p>Open <var>formula</var> in the editor.</p></dd>
+<dt><code>formula</code> <var>formulae</var></dt><dd><p>echo location of the specified <var>formulae</var> to stdout</p></dd>
<dt><code>linkage</code> [<code>--test</code>] [<code>--reverse</code>] <var>formula-name</var></dt><dd><p>Checks the library links of an installed formula.</p>
<p>Only works on installed formulae. An error is raised if it is run on
@@ -625,7 +626,6 @@ between tags.</p>
<p>If <code>--keep-tmp</code> is passed, retain the temporary directory containing
the new repository clone.</p></dd>
-<dt><code>where</code> <var>formulae</var></dt><dd><p>echo location of the specified <var>formulae</var> to stdout</p></dd>
</dl>
diff --git a/manpages/brew.1 b/manpages/brew.1
index 27a3a6949..7c151eebd 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -728,6 +728,10 @@ Open all of Homebrew for editing\.
Open \fIformula\fR in the editor\.
.
.TP
+\fBformula\fR \fIformulae\fR
+echo location of the specified \fIformulae\fR to stdout
+.
+.TP
\fBlinkage\fR [\fB\-\-test\fR] [\fB\-\-reverse\fR] \fIformula\-name\fR
Checks the library links of an installed formula\.
.
@@ -823,10 +827,6 @@ If \fB\-\-to\-tag\fR is passed, set HOMEBREW_UPDATE_TO_TAG to test updating betw
.IP
If \fB\-\-keep\-tmp\fR is passed, retain the temporary directory containing the new repository clone\.
.
-.TP
-\fBwhere\fR \fIformulae\fR
-echo location of the specified \fIformulae\fR to stdout
-.
.SH "OFFICIAL EXTERNAL COMMANDS"
.
.TP