MCPcopy Index your code
hub / github.com/cli/cli / RunWithProgress

Method RunWithProgress

pkg/iostreams/iostreams.go:361–366  ·  view source on GitHub ↗
(label string, run func() error)

Source from the content-addressed store, hash-verified

359}
360
361func (s *IOStreams) RunWithProgress(label string, run func() error) error {
362 s.StartProgressIndicatorWithLabel(label)
363 defer s.StopProgressIndicator()
364
365 return run()
366}
367
368func (s *IOStreams) StartAlternateScreenBuffer() {
369 if s.alternateScreenBufferEnabled {

Callers

nothing calls this directly

Calls 3

StopProgressIndicatorMethod · 0.95
runStruct · 0.50

Tested by

no test coverage detected