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
62a56148
Commit
62a56148
authored
4 years ago
by
William Ma
Browse files
Options
Downloads
Patches
Plain Diff
list: Update documentation
parent
8f3d2309
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/cmd/list.rb
+3
-3
3 additions, 3 deletions
Library/Homebrew/cmd/list.rb
docs/Manpage.md
+2
-0
2 additions, 0 deletions
docs/Manpage.md
manpages/brew.1
+4
-0
4 additions, 0 deletions
manpages/brew.1
with
9 additions
and
3 deletions
Library/Homebrew/cmd/list.rb
+
3
−
3
View file @
62a56148
...
@@ -32,7 +32,7 @@ module Homebrew
...
@@ -32,7 +32,7 @@ module Homebrew
switch
"--pinned"
,
switch
"--pinned"
,
description:
"Show the versions of pinned formulae, or only the specified (pinned) "
\
description:
"Show the versions of pinned formulae, or only the specified (pinned) "
\
"formulae if <formula> are provided. See also `pin`, `unpin`."
"formulae if <formula> are provided. See also `pin`, `unpin`."
switch
"--cask
s
"
,
switch
"--cask"
,
description:
"List casks"
description:
"List casks"
# passed through to ls
# passed through to ls
switch
"-1"
,
switch
"-1"
,
...
@@ -47,14 +47,14 @@ module Homebrew
...
@@ -47,14 +47,14 @@ module Homebrew
description:
"Sort by time modified, listing most recently modified first."
description:
"Sort by time modified, listing most recently modified first."
switch
:verbose
switch
:verbose
switch
:debug
switch
:debug
[
"--unbrewed"
,
"--multiple"
,
"--pinned"
,
"-l"
,
"-r"
,
"-t"
].
each
{
|
flag
|
conflicts
"--cask
s
"
,
flag
}
[
"--unbrewed"
,
"--multiple"
,
"--pinned"
,
"-l"
,
"-r"
,
"-t"
].
each
{
|
flag
|
conflicts
"--cask"
,
flag
}
end
end
end
end
def
list
def
list
list_args
.
parse
list_args
.
parse
return
list_casks
if
args
.
cask
s
?
return
list_casks
if
args
.
cask?
return
list_unbrewed
if
args
.
unbrewed?
return
list_unbrewed
if
args
.
unbrewed?
...
...
This diff is collapsed.
Click to expand it.
docs/Manpage.md
+
2
−
0
View file @
62a56148
...
@@ -290,6 +290,8 @@ If *`formula`* is provided, summarise the paths within its current keg.
...
@@ -290,6 +290,8 @@ If *`formula`* is provided, summarise the paths within its current keg.
Only show formulae with multiple versions installed.
Only show formulae with multiple versions installed.
*
`--pinned`
:
*
`--pinned`
:
Show the versions of pinned formulae, or only the specified (pinned) formulae if
*`formula`*
are provided. See also
`pin`
,
`unpin`
.
Show the versions of pinned formulae, or only the specified (pinned) formulae if
*`formula`*
are provided. See also
`pin`
,
`unpin`
.
*
`--cask`
:
List casks
*
`-1`
:
*
`-1`
:
Force output to be one entry per line. This is the default when output is not to a terminal.
Force output to be one entry per line. This is the default when output is not to a terminal.
*
`-l`
:
*
`-l`
:
...
...
This diff is collapsed.
Click to expand it.
manpages/brew.1
+
4
−
0
View file @
62a56148
...
@@ -393,6 +393,10 @@ Only show formulae with multiple versions installed\.
...
@@ -393,6 +393,10 @@ Only show formulae with multiple versions installed\.
Show the versions of pinned formulae, or only the specified (pinned) formulae if \fIformula\fR are provided\. See also \fBpin\fR, \fBunpin\fR\.
Show the versions of pinned formulae, or only the specified (pinned) formulae if \fIformula\fR are provided\. See also \fBpin\fR, \fBunpin\fR\.
.
.
.TP
.TP
\fB\-\-cask\fR
List casks
.
.TP
\fB\-1\fR
\fB\-1\fR
Force output to be one entry per line\. This is the default when output is not to a terminal\.
Force output to be one entry per line\. This is the default when output is not to a terminal\.
.
.
...
...
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