C# Class NuGet.Common.Console

Inheritance: IConsole
显示文件 Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
Confirm ( string description ) : bool
Log ( MessageLevel level, string message ) : void
PrintJustified ( int startIndex, string text ) : void
PrintJustified ( int startIndex, string text, int maxWidth ) : void
Write ( object value ) : void
Write ( string value ) : void
WriteError ( object value ) : void
WriteError ( string value ) : void
WriteLine ( ) : void
WriteLine ( object value ) : void
WriteLine ( string value ) : void
WriteWarning ( bool prependWarningText, string value ) : void
WriteWarning ( string value ) : void

Private Methods

Method Description
WriteColor ( TextWriter writer, ConsoleColor color, string value ) : void

Method Details

Confirm() public method

public Confirm ( string description ) : bool
description string
return bool

Log() public method

public Log ( MessageLevel level, string message ) : void
level MessageLevel
message string
return void

PrintJustified() public method

public PrintJustified ( int startIndex, string text ) : void
startIndex int
text string
return void

PrintJustified() public method

public PrintJustified ( int startIndex, string text, int maxWidth ) : void
startIndex int
text string
maxWidth int
return void

Write() public method

public Write ( object value ) : void
value object
return void

Write() public method

public Write ( string value ) : void
value string
return void

WriteError() public method

public WriteError ( object value ) : void
value object
return void

WriteError() public method

public WriteError ( string value ) : void
value string
return void

WriteLine() public method

public WriteLine ( ) : void
return void

WriteLine() public method

public WriteLine ( object value ) : void
value object
return void

WriteLine() public method

public WriteLine ( string value ) : void
value string
return void

WriteWarning() public method

public WriteWarning ( bool prependWarningText, string value ) : void
prependWarningText bool
value string
return void

WriteWarning() public method

public WriteWarning ( string value ) : void
value string
return void