C# Class Versionr.Printer

显示文件 Open project: eatplayhate/versionr Class Usage Examples

Public Properties

Property Type Description
NoColours bool

Private Properties

Property Type Description
ClearInteractive void
FlushOutput void
FormatOutput void
Printer System
SetOutputColour void

Public Methods

Method Description
CreateProgressBarPrinter ( string initialLine, string title, string>.Func formatter, float>.Func percentCalculator, Func percentFormatter, int barWidth ) : InteractivePrinter
CreateSimplePrinter ( string title, string>.Func formatter ) : InteractivePrinter
CreateSpinnerBarPrinter ( string initialLine, string title, string>.Func formatter, int barWidth ) : InteractivePrinter
CreateSpinnerPrinter ( string title, string>.Func formatter ) : InteractivePrinter
Escape ( string s ) : string
PopIndent ( ) : void
PrintDiagnostics ( string v ) : void
PrintError ( string v ) : void
PrintMessage ( string v ) : void
PrintMessageSingleLine ( string v ) : void
PrintWarning ( string v ) : void
PushIndent ( ) : void
RestoreDefaults ( ) : void
Write ( MessageType type, string message ) : void
WriteLineDiagnostics ( string message ) : void
WriteLineError ( string error ) : void
WriteLineMessage ( string message ) : void
WriteLineWarning ( string warning ) : void

Private Methods

Method Description
ClearInteractive ( ) : void
FlushOutput ( bool newline, string>.Tuple x ) : void
FormatOutput ( string v ) : void
Printer ( ) : System
SetOutputColour ( OutputColour style ) : void

Method Details

CreateProgressBarPrinter() public static method

public static CreateProgressBarPrinter ( string initialLine, string title, string>.Func formatter, float>.Func percentCalculator, Func percentFormatter, int barWidth ) : InteractivePrinter
initialLine string
title string
formatter string>.Func
percentCalculator float>.Func
percentFormatter Func
barWidth int
return InteractivePrinter

CreateSimplePrinter() public static method

public static CreateSimplePrinter ( string title, string>.Func formatter ) : InteractivePrinter
title string
formatter string>.Func
return InteractivePrinter

CreateSpinnerBarPrinter() public static method

public static CreateSpinnerBarPrinter ( string initialLine, string title, string>.Func formatter, int barWidth ) : InteractivePrinter
initialLine string
title string
formatter string>.Func
barWidth int
return InteractivePrinter

CreateSpinnerPrinter() public static method

public static CreateSpinnerPrinter ( string title, string>.Func formatter ) : InteractivePrinter
title string
formatter string>.Func
return InteractivePrinter

Escape() public static method

public static Escape ( string s ) : string
s string
return string

PopIndent() public static method

public static PopIndent ( ) : void
return void

PrintDiagnostics() public static method

public static PrintDiagnostics ( string v ) : void
v string
return void

PrintError() public static method

public static PrintError ( string v ) : void
v string
return void

PrintMessage() public static method

public static PrintMessage ( string v ) : void
v string
return void

PrintMessageSingleLine() public static method

public static PrintMessageSingleLine ( string v ) : void
v string
return void

PrintWarning() public static method

public static PrintWarning ( string v ) : void
v string
return void

PushIndent() public static method

public static PushIndent ( ) : void
return void

RestoreDefaults() public static method

public static RestoreDefaults ( ) : void
return void

Write() public static method

public static Write ( MessageType type, string message ) : void
type MessageType
message string
return void

WriteLineDiagnostics() public static method

public static WriteLineDiagnostics ( string message ) : void
message string
return void

WriteLineError() public static method

public static WriteLineError ( string error ) : void
error string
return void

WriteLineMessage() public static method

public static WriteLineMessage ( string message ) : void
message string
return void

WriteLineWarning() public static method

public static WriteLineWarning ( string warning ) : void
warning string
return void

Property Details

NoColours public_oe static_oe property

public static bool NoColours
return bool