MCPcopy Index your code
hub / github.com/abiosoft/ishell / output

Method output

progress.go:135–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135func (p *progressBarImpl) output() string {
136 p.Lock()
137 defer p.Unlock()
138
139 var display string
140 if p.indeterminate {
141 display = p.iterator.next()
142 } else {
143 display = p.display.Determinate()[p.percent]
144 }
145 return fmt.Sprintf("%s%s%s ", p.prefix, display, p.suffix)
146}
147
148func (p *progressBarImpl) refresh() {
149 p.wMutex.Lock()

Callers 1

refreshMethod · 0.95

Calls 2

nextMethod · 0.65
DeterminateMethod · 0.65

Tested by

no test coverage detected