Files
kopia/cli/command_cache.go
Jarek Kowalski 926e14aacb feat(repository): added PrefetchObjects() API (#1779)
* feat(repository): added precaching of data blobs

* feat(repository): added utilities for converting ID slices to strings

* feat(repository): added object.PrefetchBackingContents

* feat(repository): implemented Repository.PrefetchObjects

* feat(cli): added 'cache prefetch' subcommand

* feat(repository): prefetch in parallel

* added tests
2022-03-06 14:30:58 -08:00

20 lines
464 B
Go

package cli
type commandCache struct {
clear commandCacheClear
info commandCacheInfo
prefetch commandCachePrefetch
set commandCacheSetParams
sync commandCacheSync
}
func (c *commandCache) setup(svc appServices, parent commandParent) {
cmd := parent.Command("cache", "Commands to manipulate local cache").Hidden()
c.clear.setup(svc, cmd)
c.info.setup(svc, cmd)
c.prefetch.setup(svc, cmd)
c.set.setup(svc, cmd)
c.sync.setup(svc, cmd)
}