C# Класс PowerArgs.TabCompletion

Наследование: PowerArgs.ArgHook, ICommandLineArgumentsDefinitionMetadata
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddToHistory void
LoadHistory List

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

Метод Описание
BeforeParse ( PowerArgs.ArgHook context ) : void

Before PowerArgs parses the args, this hook inspects the command line for the indicator and if found takes over the command line and provides tab completion.

ClearHistory ( ) : void

Clears all history saved on disk

TabCompletion ( Type completionSource, string indicator = "" ) : System

Creates a new tab completion hook given a custom tab completion implementation.

TabCompletion ( string indicator = "" ) : System

Creates a new tab completion hook.

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

Метод Описание
AddToHistory ( string item ) : void
LoadHistory ( ) : List

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

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

Before PowerArgs parses the args, this hook inspects the command line for the indicator and if found takes over the command line and provides tab completion.
public BeforeParse ( PowerArgs.ArgHook context ) : void
context PowerArgs.ArgHook The context used to inspect the command line arguments.
Результат void

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

Clears all history saved on disk
public ClearHistory ( ) : void
Результат void

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

Creates a new tab completion hook given a custom tab completion implementation.
public TabCompletion ( Type completionSource, string indicator = "" ) : System
completionSource System.Type A type that implements ITabCompletionSource such as SimpleTabCompletionSource
indicator string When this indicator is the only argument the user specifies that triggers the hook to enhance the command prompt. By default, the indicator is the empty string.
Результат System

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

Creates a new tab completion hook.
public TabCompletion ( string indicator = "" ) : System
indicator string When this indicator is the only argument the user specifies that triggers the hook to enhance the command prompt. By default, the indicator is the empty string.
Результат System