C# Класс NuGetConsole.Host.ComplexCommand

Represents a complex (multi-line) command. This class builds a complex command and provides helpers to check command completeness.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CheckComplete ( string allLines, string lastLine ) : bool

Описание методов

AddLine() публичный Метод

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.
Результат bool

Clear() публичный Метод

Clear this command, discarding any previous incompleted lines if any.
public Clear ( ) : void
Результат void

ComplexCommand() публичный Метод

Creates a new complex command.
public ComplexCommand ( Func checkComplete ) : System
checkComplete Func A delegate to check complex command completeness. /// Expected signature: bool (allLines, lastLine)
Результат System