-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
add cache commands "ls" and "rm" #3592
Conversation
Additionally I fixed unscoped packages from matching scoped packages in |
I've finished the test coverage, so this is now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
957c5ac
to
03bb4c5
Compare
03bb4c5
to
ff34d6c
Compare
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
.