Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setWrite (0.37 sec)

  1. operator/pkg/util/progress/progress.go

    	// Don't set a total and use Static so we can explicitly control when you write. This is needed
    	// for handling the multiline issues.
    	bar := pb.New(0)
    	bar.Set(pb.Static, true)
    	if testWriter != nil {
    		bar.SetWriter(*testWriter)
    	}
    	bar.Start()
    	// if we aren't a terminal, we will return a new line for each new message
    	if !bar.GetBool(pb.Terminal) {
    		bar.Set(pb.ReturnSymbol, "\n")
    	}
    	return bar
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top