MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_cache_prefetch.go:18–24  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

16}
17
18func (c *commandCachePrefetch) setup(svc appServices, parent commandParent) {
19 cmd := parent.Command("prefetch", "Prefetches the provided objects into cache")
20 cmd.Flag("hint", "Prefetch hint").StringVar(&c.hint)
21 cmd.Action(svc.directRepositoryWriteAction(c.run))
22
23 cmd.Arg("object", "Object ID to prefetch").Required().StringsVar(&c.objectIDs)
24}
25
26func (c *commandCachePrefetch) run(ctx context.Context, rep repo.DirectRepositoryWriter) error {
27 var oids []object.ID

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected