dotnet / dotnet/command-line-api
Add a subcommand to dotnetsuggest for retrieving a suggestion command from Nuget or equivalent
- Lingua principale
- C#
- Stelle
- 3.7k
- Fork
- 428
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Add an `install` command to `dotnetsuggest` that:
Leveraging dotnet global tools downloads a tool that has a command for suggestions. Once install, register the global tools command so that it is associated with a command to which we are adding suggestions.
Proposed command line (initial):
`dotnetsuggest install -tool -commandPath -suggestionCommand `
`toolPackageName` The nuget package name that provides command suggestions
`commandPath` The path to the command for which we are registering completions.
`suggestionCommand` The command to execute in order to return suggestions.
**Future:**
* Specify the suggestionCommand in the tool package nuspec file so that it isn't required to specify it on the command line.
* Support a static registration file rather than just a global tool for provide suggestion completion
* Update global tools to register suggestion completion automatically when the global tool is installed either using the global tool itself or a dependent Nuget package that provides suggestion completion.
**Notes**
* By supporting a global tool for suggestion completion immediately we can use System.CommandLine to build the tool immediately - no need to worry about serialization.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.