This repository was archived by the owner on Jan 27, 2025. It is now read-only.
Implemented WildCards support and Added Check command in update #76
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.
I implemented wildcards to solve the issue #63
Example:
upack packageName install 1.*upack packageName update 2.3.*And I added the command --check in the update, if you just want to check updates using some automation software it will be helpful.
Using wildcards and check command you can do some tricks, like:
Exemple: If you have a package with two main versions like 1.x and 2.x, and the 1.x is still getting updates and you don't intend to update it to 2.x yet, you can check for updates only on 1.x
upack packageName update 1.* --checkAnd update only for 1.x with:
upack packageName update 1.*Since the wildcard is implemented in the GetVersionAsync method, basically all commands that allow inserting the version can now use wildcards.
In my last commit, I changed the wildcard behavior to follow the project logic, where all version checks only return releases unless using the --prerelease command, and using this command it only returns prereleases.
upack packageName update 1.* --prereleaseupack packageName update 1.* --check --prereleaseWill update or check only pre releases even if they dont are the most recent version available.