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

Method Progress

progress.go:91–100  ·  view source on GitHub ↗
(percent int)

Source from the content-addressed store, hash-verified

89}
90
91func (p *progressBarImpl) Progress(percent int) {
92 if percent < 0 {
93 percent = 0
94 } else if percent > 100 {
95 percent = 100
96 }
97 p.percent = percent
98 p.indeterminate = false
99 p.refresh()
100}
101
102func (p *progressBarImpl) Prefix(prefix string) {
103 p.prefix = prefix

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.95

Tested by

no test coverage detected