-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update): support filtering updated packages using package tags (#…
…3399) * feat(update): support filtering updated packages using package tags * fix: suppress a lint error
- Loading branch information
1 parent
ec2ac9c
commit 2eb8946
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,12 @@ e.g. | |
You can also specify a version. | ||
$ aqua update [email protected] | ||
You can also filter updated packages using package tags. | ||
e.g. | ||
$ aqua up -t foo # Install only packages having a tag "foo" | ||
$ aqua up --exclude-tags foo # Install only packages not having a tag "foo" | ||
` | ||
|
||
type command struct { | ||
|
@@ -124,6 +130,15 @@ func New(r *util.Param) *cli.Command { | |
Usage: "The maximum number of versions. Non-positive number refers to no limit.", | ||
Value: config.DefaultVerCnt, | ||
}, | ||
&cli.StringFlag{ | ||
Name: "tags", | ||
Aliases: []string{"t"}, | ||
Usage: "filter installed packages with tags", | ||
}, | ||
&cli.StringFlag{ | ||
Name: "exclude-tags", | ||
Usage: "exclude installed packages with tags", | ||
}, | ||
}, | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters