C# Class AppHarbor.ConsoleProgressBar

Show file Open project: appharbor/appharbor-cli Class Usage Examples

Public Methods

Method Description
ConsoleProgressBar ( string displayUnit, double>.Func displayUnitConversion ) : System
Update ( string message, long processedItems, long totalItems ) : void

Private Methods

Method Description
OverwriteConsoleMessage ( string message ) : void
Render ( double percentage, string message ) : void
WeightedAverage ( IList input, int spread = 40 ) : double

Method Details

ConsoleProgressBar() public method

public ConsoleProgressBar ( string displayUnit, double>.Func displayUnitConversion ) : System
displayUnit string
displayUnitConversion double>.Func
return System

Update() public method

public Update ( string message, long processedItems, long totalItems ) : void
message string
processedItems long
totalItems long
return void