MCPcopy
hub / github.com/abiosoft/ishell / progressBarImpl

Struct progressBarImpl

progress.go:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49const progressInterval = time.Millisecond * 100
50
51type progressBarImpl struct {
52 display ProgressDisplay
53 indeterminate bool
54 interval time.Duration
55 iterator iterator
56 percent int
57 prefix string
58 suffix string
59 final string
60 writer io.Writer
61 writtenLen int
62 running bool
63 wait chan struct{}
64 wMutex sync.Mutex
65 sync.Mutex
66}
67
68func newProgressBar(s *Shell) ProgressBar {
69 display := simpleProgressDisplay{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected