C# Class NuGetConsole.Host.ComplexCommand

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

Méthodes publiques

Méthode 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

Méthode Description
CheckComplete ( string allLines, string lastLine ) : bool

Method Details

AddLine() public méthode

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.
Résultat bool

Clear() public méthode

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

ComplexCommand() public méthode

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