Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a subcommand to dotnetsuggest for retrieving a suggestion command from Nuget or equivalent #190

Open
MarkMichaelis opened this issue Aug 23, 2018 · 0 comments
Assignees
Labels
Area-Completions Related to support for tab completion

Comments

@MarkMichaelis
Copy link
Contributor

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 <toolPackageName> -commandPath <commandPath> -suggestionCommand <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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Completions Related to support for tab completion
Projects
None yet
Development

No branches or pull requests

3 participants