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
ab81cb9c
Unverified
Commit
ab81cb9c
authored
4 years ago
by
Amory Meltzer
Browse files
Options
Downloads
Patches
Plain Diff
bash completion: Avoid cask deprecation warnings, learn --cask
See #8709
parent
f9dd8ae6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
completions/bash/brew
+5
-4
5 additions, 4 deletions
completions/bash/brew
with
5 additions
and
4 deletions
completions/bash/brew
+
5
−
4
View file @
ab81cb9c
...
...
@@ -312,7 +312,7 @@ _brew_link() {
}
_brew_list() {
local allopts="--unbrewed --verbose --pinned --versions --multiple"
local allopts="--unbrewed --verbose --pinned --versions --multiple
--cask
"
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
...
...
@@ -408,7 +408,7 @@ _brew_outdated() {
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
-*)
__brewcomp "--quiet --json=v1 --fetch-HEAD"
__brewcomp "--quiet
--cask
--json=v1 --fetch-HEAD"
return
;;
esac
...
...
@@ -578,6 +578,7 @@ _brew_upgrade() {
--all
--build-from-source --build-bottle --force-bottle
--cleanup
--cask
--debug
--verbose
--fetch-HEAD
...
...
@@ -656,7 +657,7 @@ __brew_cask_complete_formulae ()
__brew_cask_complete_installed ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
local inst=$(brew
cask list
-1)
local inst=$(brew
list --cask
-1)
COMPREPLY=($(compgen -W "$inst" -- "$cur"))
}
...
...
@@ -672,7 +673,7 @@ __brew_cask_complete_outdated ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
local greedy=$(__brew_caskcomp_words_include "--greedy" && echo "--greedy")
local outdated=$(brew
cask
outdated --quiet $greedy)
local outdated=$(brew outdated
--cask
--quiet $greedy)
COMPREPLY=($(compgen -W "$outdated" -- "$cur"))
}
...
...
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