Describe the feature or problem you’d like to solve
When using gh ext browse to look for GH CLI extensions, gh creates and uses a cache ($TMPDIR/gh-cli-cache) through cli/go-gh that holds information about repositories with gh-extension topic. It is occasionally necessary to clear this cache especially when troubleshooting GH CLI extension browse experience, however these details are obscure, leading to wasted time digging into the guts or phoning a CLI friend to figure it out.
Proposed solution
I can see several possible solutions of various degrees:
- Documentation explaining the
gh-cli-cache and repercussions of deleting it
- Additional flag to
gh ext browse that allows clearing browse specific cache information
- Additional command to
gh that allows clearing all cache
Additional context
- Create repository without
gh-extension topic
gh ext browse, confirming repository does not show up
- Update repository with
gh-extension topic
gh ext browse, confirming repository does not show up due to cache
- Delete cache directory,
rm -rf $TMPDIR/gh-cli-cache
gh ext browse, confirming repository shows up
Describe the feature or problem you’d like to solve
When using
gh ext browseto look for GH CLI extensions,ghcreates and uses a cache ($TMPDIR/gh-cli-cache) throughcli/go-ghthat holds information about repositories withgh-extensiontopic. It is occasionally necessary to clear this cache especially when troubleshooting GH CLI extension browse experience, however these details are obscure, leading to wasted time digging into the guts or phoning a CLI friend to figure it out.Proposed solution
I can see several possible solutions of various degrees:
gh-cli-cacheand repercussions of deleting itgh ext browsethat allows clearing browse specific cache informationghthat allows clearing all cacheAdditional context
gh-extensiontopicgh ext browse, confirming repository does not show upgh-extensiontopicgh ext browse, confirming repository does not show up due to cacherm -rf $TMPDIR/gh-cli-cachegh ext browse, confirming repository shows up