add cache commands "ls" and "rm"#3592
Merged
wraithgar merged 1 commit intonpm:release-nextfrom Aug 18, 2021
Merged
Conversation
ljharb
reviewed
Jul 29, 2021
cotaboss
approved these changes
Jul 29, 2021
wraithgar
reviewed
Jul 29, 2021
wraithgar
reviewed
Jul 29, 2021
Author
|
Additionally I fixed unscoped packages from matching scoped packages in |
Author
|
I've finished the test coverage, so this is now ready for review. |
wraithgar
reviewed
Aug 12, 2021
wraithgar
reviewed
Aug 12, 2021
nlf
reviewed
Aug 12, 2021
nlf
suggested changes
Aug 17, 2021
Contributor
nlf
left a comment
There was a problem hiding this comment.
in addition to the comments above, one last thing:
the params static getter should have 'package' added to it, that'll make sure that when docs are generated it will list the --package flag as one in use by this command
957c5ac to
03bb4c5
Compare
03bb4c5 to
ff34d6c
Compare
Merged
This was referenced May 22, 2024
This file contains hidden or 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
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.
This adds the ability to list and delete cached package downloads.
ls [<package>@<version query>]Lists all cache keys, or keys related to certain package specs. Filtered results are best effort based on both existing packuments in cache (further resolving package keys) as well as a fallback to filtering tgz packages based on URL.
Any number of packages can be specified.
Packuments cache keys match on any version spec.
rm [<key>](alias ofclean)Removes any number of keys
I extended clean to accept any number of cacache keys. Zero arguments still removes everything and requires
--force.