Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
0523f66b
Commit
0523f66b
authored
13 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
deps: document -n switch
parent
a6562433
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Contributions/manpages/brew.1.md
+3
-1
3 additions, 1 deletion
Library/Contributions/manpages/brew.1.md
Library/Homebrew/cmd/deps.rb
+1
-2
1 addition, 2 deletions
Library/Homebrew/cmd/deps.rb
share/man/man1/brew.1
+4
-1
4 additions, 1 deletion
share/man/man1/brew.1
with
8 additions
and
4 deletions
Library/Contributions/manpages/brew.1.md
+
3
−
1
View file @
0523f66b
...
...
@@ -70,12 +70,14 @@ For the full command list, see the COMMANDS section.
If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and
will thus not add the MD5 to the formula for you.
*
`deps [--1]`
<formula>
:
*
`deps [--1]
[-n]
`
<formula>
:
Show
<formula>
's dependencies.
If `--1` is passed, only show dependencies one level down, instead of
recursing.
If `-n` is passed, shows dependencies in topological order.
*
`doctor`
:
Check your system for potential problems.
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/deps.rb
+
1
−
2
View file @
0523f66b
...
...
@@ -4,8 +4,7 @@ module Homebrew extend self
def
deps
if
ARGV
.
include?
'--all'
Formula
.
each
do
|
f
|
# TODO add a space after the colon??
puts
"
#{
f
.
name
}
:
#{
f
.
deps
*
' '
}
"
puts
"
#{
f
.
name
}
:
#{
f
.
deps
*
' '
}
"
end
else
all_deps
=
ARGV
.
formulae
.
map
{
|
f
|
ARGV
.
one?
?
f
.
deps
:
f
.
recursive_deps
}.
intersection
...
...
This diff is collapsed.
Click to expand it.
share/man/man1/brew.1
+
4
−
1
View file @
0523f66b
...
...
@@ -78,12 +78,15 @@ Generate a formula for the downloadable file at \fIURL\fR and opens it in $EDITO
If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the cache and will thus not add the MD5 to the formula for you\.
.
.TP
\fBdeps [\-\-1]\fR \fIformula\fR
\fBdeps [\-\-1]
[\-n]
\fR \fIformula\fR
Show \fIformula\fR\'s dependencies\.
.
.IP
If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\.
.
.IP
If \fB\-n\fR is passed, shows dependencies in topological order\.
.
.TP
\fBdoctor\fR
Check your system for potential problems\.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment