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

Method setup

cli/command_snapshot_estimate.go:29–38  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

27}
28
29func (c *commandSnapshotEstimate) setup(svc appServices, parent commandParent) {
30 cmd := parent.Command("estimate", "Estimate the snapshot size and upload time.")
31 cmd.Arg("source", "File or directory to analyze.").Required().ExistingFileOrDirVar(&c.snapshotEstimateSource)
32 cmd.Flag("show-files", "Show files").BoolVar(&c.snapshotEstimateShowFiles)
33 cmd.Flag("quiet", "Do not display scanning progress").Short('q').BoolVar(&c.snapshotEstimateQuiet)
34 cmd.Flag("upload-speed", "Upload speed to use for estimation").Default("10").PlaceHolder("mbit/s").Float64Var(&c.snapshotEstimateUploadSpeed)
35 cmd.Flag("max-examples-per-bucket", "Max examples per bucket").Default("10").IntVar(&c.maxExamplesPerBucket)
36 cmd.Action(svc.repositoryReaderAction(c.run))
37 c.out.setup(svc)
38}
39
40type estimateProgress struct {
41 stats snapshot.Stats

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected