add new command to refresh the cache

Labels: area/cli kind/feature priority/backlog

Timeline

sudoforge opened (edited)

maybe worth to make a subcommand to rebuilt the cache? eg. git bug cache refresh or something˙

Originally posted by @bAndie91 in https://github.com/git-bug/git-bug/discussions/1332#discussioncomment-12691225


while the original discussion ended up at this sort of feature request due to manual pushing and pulling of refs/bugs and refs/identities, it would be worth having a command to do this for other reasons (e.g. debugging, testing).

sudoforge added label area/cli

sudoforge added label kind/feature

sudoforge added label priority/backlog

Michael Muré (MichaelMure) commented

There is likely more potential commands for "admin" sort of things (say, remove everything git-bug, ...) so I'd suggest a root namespace for that kind of things instead of specifically the cache.

sudoforge commented (edited)

there's git bug wipe today (but it needs a little TLC). in implementing this, i'm thinking something like git bug init --reset-cache as an eventual target (but init doesn't exist today).

to avoid adding a new command for this today, i think implementing it under wipe makes sense, e.g. wipe --cache-only. 🤷

edit:

actually, i think renaming wipe to reset and having different args like:

  • all
  • cache
  • users
  • identities
  • bugs