docs: plugin READMEs + foo-scrape cache-by-default with shared FOO_CACHE#10
Open
jadb wants to merge 4 commits into
Open
docs: plugin READMEs + foo-scrape cache-by-default with shared FOO_CACHE#10jadb wants to merge 4 commits into
jadb wants to merge 4 commits into
Conversation
regroup foo-youtube docs in cmd/foo-youtube/README.md. verified against main.go: flags + --no-* negation, 0/1/2/5 exit codes, ext-info contract, bus events + env vars. links shared plugin docs, no content duplication.
foo-scrape caching now on by default (was opt-in) with --no-cache to bypass, matching foo-youtube. FOO_SCRAPE_CACHE/_TTL become overrides, not the on/off switch. both plugins now resolve cache path + TTL with precedence: plugin-specific env -> shared FOO_CACHE/FOO_CACHE_TTL -> XDG/24h default. shared env lets one setting cover every foo plugin; each keeps a distinct db file.
new cmd/foo-scrape/README.md (consolidated plugin doc, links shared docs). update cmd/foo-youtube/README.md caching section for the shared FOO_CACHE/FOO_CACHE_TTL precedence + --no-cache.
resolveCachePath/resolveCacheTTL tests for foo-scrape (new test file) and foo-youtube: plugin-specific env > shared FOO_CACHE/FOO_CACHE_TTL > XDG/24h default, plus blank/unparseable fallthrough and zero-TTL.
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.
No description provided.