C# Класс PowerArgs.Cli.ContextAssistPicker

A context assist provider that lets the user select from a fixed set of options
Наследование: ContextAssistSearch
Показать файл Открыть проект Примеры использования класса

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

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