C# 클래스 PowerArgs.Cli.ContextAssistPicker

A context assist provider that lets the user select from a fixed set of options
상속: ContextAssistSearch
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
CanAssist ( RichCommandLineContext context ) : bool

Returns true if there is at least one option, false otherwise.

ContextAssistPicker ( ) : System

initialized the picker

Pick ( IConsoleProvider console = null, bool allowCancel = true ) : ContextAssistSearchResult

Lets the user pick from the set of options.

보호된 메소드들

메소드 설명
GetResults ( string searchString ) : List

returns all options that contain the given search string, ignoring case

GetResultsAsync ( string searchString ) : System.Threading.Tasks.Task>

Not implemented

메소드 상세

CanAssist() 공개 메소드

Returns true if there is at least one option, false otherwise.
public CanAssist ( RichCommandLineContext context ) : bool
context RichCommandLineContext context about the parent reader
리턴 bool

ContextAssistPicker() 공개 메소드

initialized the picker
public ContextAssistPicker ( ) : System
리턴 System

GetResults() 보호된 메소드

returns all options that contain the given search string, ignoring case
protected GetResults ( string searchString ) : List
searchString string the search string
리턴 List

GetResultsAsync() 보호된 메소드

Not implemented
protected GetResultsAsync ( string searchString ) : System.Threading.Tasks.Task>
searchString string Not implemented
리턴 System.Threading.Tasks.Task>

Pick() 공개 메소드

Lets the user pick from the set of options.
public Pick ( IConsoleProvider console = null, bool allowCancel = true ) : ContextAssistSearchResult
console IConsoleProvider optionally provide a custom console implementation
allowCancel bool if true, users can cancel picking by pressing the escape key. If false, the escape key does nothing.
리턴 ContextAssistSearchResult