dotnet / command-line-api

Command line parsing, invocation, and rendering of terminal output.
https://github.com/dotnet/command-line-api/wiki
MIT License
3.35k stars 376 forks source link

Improve dotnet-suggest auto registration #211

Open jeredm opened 5 years ago

jeredm commented 5 years ago
jonsequitur commented 5 years ago

The approach discussed during the hackathon was that if dotnet-suggest is not installed, we will detect that on configuration of the parser and set a flag that can be read by the user when help is requested. It should be reasonably attention-grabbing in most cases if there's a line of red after help output something like:

To enable tab suggestions, run dotnet tool install -g dotnet-suggest.
To disable this message, run your-command [hide-dotnet-suggest-message]`