command-line-api: Tab completion with dotnet-suggest is not working
I can’t get dotnet suggest working for my application. I have a .netcore 3.1 app with a few commands but I get no tab completion whatsoever. Neither in Windows Terminal, nor in Cmder.
dotnet-suggest version: 1.1.137102+f2556cacb35c0b68201d73eaf1c0df8c5e57e43e System.CommandLine version: 2.0.0-beta1.20371.2
The shim script is also in place, $env:DOTNET_SUGGEST_SCRIPT_VERSION prints 1.0.0.
my_app [suggest] also prints
–help –version -? -h /? /h c clear g get o open
dotnet-suggest list prints
dotnet-suggest dotnet suggest
I did the following steps:
- Reference System.CommandLine in my project.
- Install dotnet-suggest via
dotnet tool install --global dotnet-suggest --version 1.1.137102. - Paste the shim script from here into my $PROFILE.
Do I have to do something else to get this working?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
Hmm I’m not sure why but it’s working now. I think my_app didn’t register properly the first time I’ve tested it. It showed up in
dotnet-suggest listbut it didn’t work. I’ve just reinstalled both tools and it looks like everything is working fine now.I’m glad we figured it out in the end. Thank you for your time and help.