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

[Feature]: Cache docset feeds #37

Open
7 tasks
Morpheus636 opened this issue May 23, 2022 · 0 comments
Open
7 tasks

[Feature]: Cache docset feeds #37

Morpheus636 opened this issue May 23, 2022 · 0 comments
Labels
enhancement New feature or request triaged
Milestone

Comments

@Morpheus636
Copy link
Owner

Describe the Feature

Make it so the docset feeds are cached instead of downloading and deleting each time.

  • This would also add a command zeal-cli cache update which would delete the existing cache and download the most recent one from the reomte repository.
  • A --update-cache option should be added to the zeal-cli install command to use the existing behavior instead of the new behavior.
  • If the cache does not exist, the program should automatically download it.
  • If the cache is old, it should warn the user and tell them how to run zeal-cli cache update

Closing Requirements

  • Remove the code which downloads and deletes the feeds for each command
  • Refer the install command to a cache directory
  • Create a cache update command
  • If the cache directory doesn't exist or is empty, run the cache-update function
  • Create a file which stores the date and time that the cache was last updated (within the cache dir)
  • If the cache was last updated more than a week ago, prompt the user to update the cache.
  • Write tests for the above
@Morpheus636 Morpheus636 added the enhancement New feature or request label May 23, 2022
@Morpheus636 Morpheus636 modified the milestones: v2.0.0, v1.2.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

1 participant