(label string)
| 277 | } |
| 278 | |
| 279 | func (s *IOStreams) UpdateProgressIndicatorLabel(label string) { |
| 280 | s.progressIndicatorMu.Lock() |
| 281 | defer s.progressIndicatorMu.Unlock() |
| 282 | if s.progressIndicator == nil { |
| 283 | return |
| 284 | } |
| 285 | s.progressIndicator.Prefix = label + " " |
| 286 | } |
| 287 | |
| 288 | // TerminalWidth returns the width of the terminal that stdout is attached to. |
| 289 | // TODO: investigate whether ProcessTerminalWidth could replace all this. |
no outgoing calls
no test coverage detected