dotnet / dotnet/sdk

Better suggestion for erroneous `dotnet new gitconfig`

Open
#43,084 1 comment 0 reactions 1 assignee Claimed by @nagilson View on GitHub
Area-Templates untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.

I incorrectly typed `dotnet new gitconfig` and got this

```sh-session
> dotnet new gitconfig
No templates or subcommands found matching: 'gitconfig'.
Did you mean one of the following templates?
dotnet new nugetconfig
dotnet new webconfig

To list installed templates similar to 'gitconfig', run:
dotnet new list gitconfig
To search for the templates on NuGet.org, run:
dotnet new search gitconfig

For details on the exit code, refer to https://aka.ms/templating-exit-codes#103
```

That's a nice message but it doesn't have the one I actually wanted.

### Describe the solution you'd like
It'd be great if `dotnet new gitignore` (which is what I wanted) was one of the suggestions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.