Command-line-api: Improve dotnet-suggest auto registration

Created on 17 Sep 2018  路  1Comment  路  Source: dotnet/command-line-api

  • [ ] Improve user experience when the user does not have dotnet-suggest installed.
  • [x] Remove explicit registration
Area-Suggestions help wanted

Most helpful comment

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]`

>All comments

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]`
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariopasquali picture mariopasquali  路  4Comments

divinebovine picture divinebovine  路  3Comments

erichiller picture erichiller  路  3Comments

ibigbug picture ibigbug  路  3Comments

DualBrain picture DualBrain  路  3Comments