Udostępnij za pośrednictwem


CommandLineBuilderExtensions.UseSuggestDirective(CommandLineBuilder) Metoda

Definicja

Umożliwia użycie dyrektywy, która po określeniu [suggest] w skrótach wejściowych wiersza polecenia normalne obsługa poleceń i zapisuje nową listę sugestii rozdzielanych przez większość powłoki w celu zapewnienia uzupełniania wiersza polecenia.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Builder::CommandLineBuilder ^ UseSuggestDirective(System::CommandLine::Builder::CommandLineBuilder ^ builder);
public static System.CommandLine.Builder.CommandLineBuilder UseSuggestDirective (this System.CommandLine.Builder.CommandLineBuilder builder);
static member UseSuggestDirective : System.CommandLine.Builder.CommandLineBuilder -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseSuggestDirective (builder As CommandLineBuilder) As CommandLineBuilder

Parametry

builder
CommandLineBuilder

Konstruktor wiersza polecenia.

Zwraca

To samo wystąpienie klasy CommandLineBuilder.

Uwagi

Narzędzie dotnet-suggest wymaga włączenia dyrektywy sugerowanej dla aplikacji w celu zapewnienia uzupełniania.

Dotyczy