C# Class PowerArgs.Cli.ContextAssistPicker

A context assist provider that lets the user select from a fixed set of options
Inheritance: ContextAssistSearch
Afficher le fichier Open project: adamabdelhamed/PowerArgs Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
GetResults ( string searchString ) : List

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

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

Not implemented

Method Details

CanAssist() public méthode

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

ContextAssistPicker() public méthode

initialized the picker
public ContextAssistPicker ( ) : System
Résultat System

GetResults() protected méthode

returns all options that contain the given search string, ignoring case
protected GetResults ( string searchString ) : List
searchString string the search string
Résultat List

GetResultsAsync() protected méthode

Not implemented
protected GetResultsAsync ( string searchString ) : System.Threading.Tasks.Task>
searchString string Not implemented
Résultat System.Threading.Tasks.Task>

Pick() public méthode

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