dotnet / dotnet/templating

CLI - allow second parameter to specify name of project/item template

Open
#3,009 7 comments 2 reactions 1 assignee Claimed by @MiYanni View on GitHub
area: CLI feature good first issue Priority:1 triage:transfer-to-sdk triaged
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

Today you have to pass in the `-n` argument for the name of the project or template. For Example

```
dotnet new page -n MyPage -na MyNamespace
```

You almost always are going to specify -n for item templates, ideally you could just pass in a second parameter which is the next default, in this case `-n`.

This would pair great with https://github.com/dotnet/templating/issues/3008, which would allow for

```
dotnet new class MyClass
```

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.