C# 클래스 NuGetConsole.Host.ComplexCommand

Represents a complex (multi-line) command. This class builds a complex command and provides helpers to check command completeness.
파일 보기 프로젝트 열기: monoman/NugetCracker

공개 메소드들

메소드 설명
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