-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add update command #2329
Merged
Merged
feat: add update command #2329
Conversation
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 was referenced Oct 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
aqua update
command updating packages and registries #1657Add a sub command
update
(up
) to update registries and packages.If no argument is passed, all registries and packages are updated to the latest.
# Update all packages and registries to the latest versions aqua update
This command has an alias "up"
This command
Updated configuration file paths
This command finds a configuration file
aqua.yaml
according to the rule and updates only one file.Once this command finds one file, it stops searching other aqua.yaml.
So if you want to update other files, please change the current directory or specify the configuration file path with the option
-c
.Update only registries
If you want to update only registries, please use the
--only-registry [-r]
option.# Update only registries aqua update -r
Update only packages
If you want to update only packages, please use the
--only-package [-p]
option.# Update only packages aqua update -p
Update only specific commands
You can specify packages with command names. aqua finds packages that have these commands and updates them.
e.g.
# Update cli/cli aqua update gh
Select packages with Fuzzy Finder
If you want to update only specific packages, please use the
-i
option.You can select packages with the fuzzy finder.
If
-i
option is used, registries aren't updated.# Select updated packages with fuzzy finder aqua update -i
Select the package version with Fuzzy Finder
If you want to select versions, please use the
-s
option.You can select versions with the fuzzy finder. You can not only update but also downgrade packages.
# Select updated packages and versions with fuzzy finder aqua update -i -s
The field
version
is ignoredThis command doesn't update packages if the
version
field is used.So if you don't want to update specific packages, the
version
field is useful.commit hashes are ignored
This command doesn't update commit hashes.
There are some known issues related to the third party library goccy/go-yaml.
null
is set topackages
wrongly if registries are updated andpackages
is emptyThis issue is because of the third party library goccy/go-yaml.
Before
Run
aqua up
.After
Newlines are removed wrongly
This issue is because of the third party library goccy/go-yaml.
Before
Run
aqua up
.After