Skip to content
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

Split the cache CLI command into clear and inspect #96

Open
Abbe98 opened this issue Mar 6, 2024 · 1 comment
Open

Split the cache CLI command into clear and inspect #96

Abbe98 opened this issue Mar 6, 2024 · 1 comment
Labels
🏅 enhancement New feature or request
Milestone

Comments

@Abbe98
Copy link
Collaborator

Abbe98 commented Mar 6, 2024

Currently the top-level cache command is used both for inspecting a cached item and invalidating it:

Invalidate/clear:
snowman cache countries.rq --invalidate

Inspect:
snowman cache countries.rq

This should instead be split so that it reads better and is easier to document:

snowman cache clear countries.rq

snowman cache inspect countries.rq

@Abbe98
Copy link
Collaborator Author

Abbe98 commented Oct 4, 2024

More non-obvious changes related to this and #91:

snowman cache clear synonym to snowman cache inspect summarizing the cache from both SPARQL queries and remote resources(#91). Not very obvious but it might be dangerous to make it just clear everything.

snowman cache clear --unused-sparql
snowman cache clear --unused-resources (#91)
snowman cache inspect --unused-sparql
snowman cache inspect --unused-resources (#91)

snowman cache clear --all-sparql
snowman cache clear --all-resources (#91)
snowman cache inspect --all-sparql
snowman cache inspect --all-resources (#91)

snowman cache clear --all
snowman cache inspect --all (same as snowman cache inspect)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏅 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant