Fix brew server and document.
This commit is contained in:
parent
74a081e08d
commit
6d36c4daf2
@ -144,7 +144,7 @@ get '/formula/:name' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
used_by = Formula.get_used_by()[klass.name]
|
used_by = Formula.all.select{|ff| ff.deps.include?(klass.name)}.map{|f| f.name}.flatten.uniq.sort
|
||||||
unless used_by == nil
|
unless used_by == nil
|
||||||
s << <<-HTML
|
s << <<-HTML
|
||||||
<dt>Used by</td>
|
<dt>Used by</td>
|
||||||
|
|||||||
@ -175,6 +175,10 @@ Some external commands are shipped with Homebrew, and enabled by default.
|
|||||||
* `missing`:
|
* `missing`:
|
||||||
Checks all installed formuale for missing dependencies.
|
Checks all installed formuale for missing dependencies.
|
||||||
|
|
||||||
|
* `server`:
|
||||||
|
Starts a local webserver with an app that lets you browse available
|
||||||
|
formulae, similar to `gem server`.
|
||||||
|
|
||||||
* `test` <formula>:
|
* `test` <formula>:
|
||||||
A few formulae provide a test method. `brew test <formula>` runs this
|
A few formulae provide a test method. `brew test <formula>` runs this
|
||||||
test method. There is no standard output or return code, but it should
|
test method. There is no standard output or return code, but it should
|
||||||
|
|||||||
@ -186,6 +186,10 @@ Downloads the tarball or checks out from VCS for the given \fIformula\fR\. For t
|
|||||||
Checks all installed formuale for missing dependencies\.
|
Checks all installed formuale for missing dependencies\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
\fBserver\fR
|
||||||
|
Starts a local webserver with an app that lets you browse available formulae, similar to \fBgem server\fR\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
\fBtest\fR \fIformula\fR
|
\fBtest\fR \fIformula\fR
|
||||||
A few formulae provide a test method\. \fBbrew test <formula>\fR runs this test method\. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula\.
|
A few formulae provide a test method\. \fBbrew test <formula>\fR runs this test method\. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula\.
|
||||||
.
|
.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user