MCPcopy Create free account
hub / github.com/algolia/cli / UpdateProgressIndicatorLabel

Method UpdateProgressIndicatorLabel

pkg/iostreams/iostreams.go:279–286  ·  view source on GitHub ↗
(label string)

Source from the content-addressed store, hash-verified

277}
278
279func (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.

Callers 14

runImportCmdFunction · 0.80
runUpdateCmdFunction · 0.80
runOperationsCmdFunction · 0.80
runImportCmdFunction · 0.80
runImportCmdFunction · 0.80
runSetCmdFunction · 0.80
runImportCmdFunction · 0.80
runImportCmdFunction · 0.80
runCopyCmdFunction · 0.80
runDeleteCmdFunction · 0.80
runMoveCmdFunction · 0.80
runAnalyzeCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected