MCPcopy
hub / github.com/restic/restic / NewProgressPrinter

Function NewProgressPrinter

internal/ui/progress.go:69–78  ·  view source on GitHub ↗
(json bool, verbosity uint, term Terminal)

Source from the content-addressed store, hash-verified

67}
68
69func NewProgressPrinter(json bool, verbosity uint, term Terminal) progress.Printer {
70 if json {
71 verbosity = 0
72 }
73 return &progressPrinter{
74 term: term,
75 Message: *NewMessage(term, verbosity),
76 show: verbosity > 0,
77 }
78}

Callers 15

NewTextProgressFunction · 0.92
NewJSONProgressFunction · 0.92
NewTextProgressFunction · 0.92
NewJSONProgressFunction · 0.92
runCatFunction · 0.92
runRewriteFunction · 0.92
runCacheFunction · 0.92
listPacksFunction · 0.92
listTreePacksFunction · 0.92
removePacksFunction · 0.92
removePacksExceptFunction · 0.92
testLoadSnapshotFunction · 0.92

Calls 1

NewMessageFunction · 0.85

Tested by 14

listPacksFunction · 0.74
listTreePacksFunction · 0.74
removePacksFunction · 0.74
removePacksExceptFunction · 0.74
testLoadSnapshotFunction · 0.74
testPackAndBlobCountsFunction · 0.74
testListBlobsFunction · 0.74
getSnapshotFunction · 0.74
testRewriteMetadataFunction · 0.74
TestFindListOnceFunction · 0.74
checkSnapshotsFunction · 0.74