C# Class NuGetConsole.Host.ComplexCommand

Represents a complex (multi-line) command. This class builds a complex command and provides helpers to check command completeness.
Show file Open project: monoman/NugetCracker

Public Methods

Method Description
AddLine ( string line, string &fullCommand ) : bool

Add a new line to this complex command.

Clear ( ) : void

Clear this command, discarding any previous incompleted lines if any.

ComplexCommand ( Func checkComplete ) : System

Creates a new complex command.

Private Methods

Method Description
CheckComplete ( string allLines, string lastLine ) : bool

Method Details

AddLine() public method

Add a new line to this complex command.
public AddLine ( string line, string &fullCommand ) : bool
line string The new line content.
fullCommand string The completed full command if this complex command /// becomes complete after appending line.
return bool

Clear() public method

Clear this command, discarding any previous incompleted lines if any.
public Clear ( ) : void
return void

ComplexCommand() public method

Creates a new complex command.
public ComplexCommand ( Func checkComplete ) : System
checkComplete Func A delegate to check complex command completeness. /// Expected signature: bool (allLines, lastLine)
return System