(label string, run func() error)
| 359 | } |
| 360 | |
| 361 | func (s *IOStreams) RunWithProgress(label string, run func() error) error { |
| 362 | s.StartProgressIndicatorWithLabel(label) |
| 363 | defer s.StopProgressIndicator() |
| 364 | |
| 365 | return run() |
| 366 | } |
| 367 | |
| 368 | func (s *IOStreams) StartAlternateScreenBuffer() { |
| 369 | if s.alternateScreenBufferEnabled { |
nothing calls this directly
no test coverage detected