applied changes suggested in PR
This commit is contained in:
parent
de16dcc1ad
commit
0d715f90ea
@ -1,5 +1,5 @@
|
|||||||
#: * `formula` <formulae>:
|
#: * `formula` <formula>:
|
||||||
#: echo location of the specified <formulae> to stdout
|
#: Display the path where <formula> is
|
||||||
|
|
||||||
require "formula"
|
require "formula"
|
||||||
|
|
||||||
@ -8,8 +8,6 @@ module Homebrew
|
|||||||
|
|
||||||
def formula
|
def formula
|
||||||
raise FormulaUnspecifiedError if ARGV.named.empty?
|
raise FormulaUnspecifiedError if ARGV.named.empty?
|
||||||
ARGV.resolved_formulae.each do |f|
|
ARGV.resolved_formulae.each { |f| puts f.path }
|
||||||
puts "#{f.path}\n"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -88,7 +88,7 @@ __brew_common_commands() {
|
|||||||
'doctor:audits your installation for common issues'
|
'doctor:audits your installation for common issues'
|
||||||
'edit:edit a formula'
|
'edit:edit a formula'
|
||||||
'fetch:download formula resources to the cache'
|
'fetch:download formula resources to the cache'
|
||||||
'formula:location of formulae'
|
'formula:the path for a formula'
|
||||||
'gist-logs:generate a gist of the full build logs'
|
'gist-logs:generate a gist of the full build logs'
|
||||||
'home:visit the homepage of a formula or the brew project'
|
'home:visit the homepage of a formula or the brew project'
|
||||||
'info:information about a formula'
|
'info:information about a formula'
|
||||||
@ -367,6 +367,11 @@ _brew_fetch() {
|
|||||||
'*:formula:__brew_formulae'
|
'*:formula:__brew_formulae'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# brew formula formula:
|
||||||
|
_brew_formula() {
|
||||||
|
__brew_formulae
|
||||||
|
}
|
||||||
|
|
||||||
# brew gist-logs [--new-issue|-n] formula
|
# brew gist-logs [--new-issue|-n] formula
|
||||||
_brew_gist_logs() {
|
_brew_gist_logs() {
|
||||||
_arguments \
|
_arguments \
|
||||||
@ -794,12 +799,6 @@ _brew_vendor_install() {
|
|||||||
'--target'
|
'--target'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# brew where formulae:
|
|
||||||
_brew_where() {
|
|
||||||
__brew_formulae
|
|
||||||
}
|
|
||||||
|
|
||||||
# the main completion function
|
# the main completion function
|
||||||
_brew() {
|
_brew() {
|
||||||
local curcontext="$curcontext" state state_descr line expl
|
local curcontext="$curcontext" state state_descr line expl
|
||||||
|
|||||||
@ -537,7 +537,7 @@ you to explicitly set the name and version of the package you are creating.</p>
|
|||||||
the specified tap.</p></dd>
|
the specified tap.</p></dd>
|
||||||
<dt class="flush"><code>edit</code></dt><dd><p>Open all of Homebrew for editing.</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>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>formula</code> <var>formula</var></dt><dd><p>Display the path where <var>formula</var> is</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>
|
<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
|
<p>Only works on installed formulae. An error is raised if it is run on
|
||||||
|
|||||||
@ -728,8 +728,8 @@ Open all of Homebrew for editing\.
|
|||||||
Open \fIformula\fR in the editor\.
|
Open \fIformula\fR in the editor\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBformula\fR \fIformulae\fR
|
\fBformula\fR \fIformula\fR
|
||||||
echo location of the specified \fIformulae\fR to stdout
|
Display the path where \fIformula\fR is
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBlinkage\fR [\fB\-\-test\fR] [\fB\-\-reverse\fR] \fIformula\-name\fR
|
\fBlinkage\fR [\fB\-\-test\fR] [\fB\-\-reverse\fR] \fIformula\-name\fR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user