dotnet / dotnet/command-line-api

Suggestions don't work when tool is invoked as a dotnet subcommand

Offen
#2,129 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Area-Completions bug duplicate
Vorherrschende Sprache
C#
Sterne
3.7k
Forks
428
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have a tool named `dotnet-shift`.

The tool can either be invoked as `dotnet-shift`, or it can be invoked as `dotnet shift`.

When the former syntax is used to invoke the tool, the command completions work.
And when the latter is used, they don't.

My understanding is that for this to work, the .NET SDK should pass on the request for suggestions to the tool that gets invoked.

cc @jonsequitur @adamsitnik

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, Vervollständigungen für ein Tool zu reproduzieren, das sowohl als `dotnet-shift` als auch als `dotnet shift` aufgerufen wird, und verfolge dann, wie Vorschlagsanfragen für dotnet-Unterbefehle verarbeitet werden. Ermittle, an welcher Stelle das .NET SDK die Anfrage an das Tool weiterleiten müsste; die Aufgabe ist abgeschlossen, wenn beide Aufrufformen funktionierende Befehlsvervollständigungen bereitstellen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.