MCPcopy Create free account
hub / github.com/cli/cli / RunWithProgress

Method RunWithProgress

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

Source from the content-addressed store, hash-verified

371}
372
373func (s *IOStreams) RunWithProgress(label string, run func() error) error {
374 s.StartProgressIndicatorWithLabel(label)
375 defer s.StopProgressIndicator()
376
377 return run()
378}
379
380func (s *IOStreams) StartAlternateScreenBuffer() {
381 if s.alternateScreenBufferEnabled {

Callers

nothing calls this directly

Calls 3

StopProgressIndicatorMethod · 0.95
runStruct · 0.50

Tested by

no test coverage detected