renamed where to formula

This commit is contained in:
Timothee Cour 2017-02-08 00:12:50 -08:00
parent ae829ed229
commit ac091437e5
5 changed files with 9 additions and 9 deletions

View File

@ -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:

View File

@ -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"

View File

@ -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'

View File

@ -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>

View File

@ -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