templating icon indicating copy to clipboard operation
templating copied to clipboard

Lead to `dotnet new create <template name>`

Open vlada-shubina opened this issue 3 years ago • 1 comments

Currently dotnet new create subcommand is hidden. In case the template matches subcommand name (list, install, uninstall) the only way to instantiate it is using dotnet new create.

Consider creating the lead to the scenario

Some considerations:

  • make create subcommand visible
  • allow this scenario via tab completion when conflict exists
  • create the lead from subcommand in case the template with same short name exists (example: when running dotnet new list and list template is available, show note similar to: To run template with short-name 'list', use dotnet new create list.

vlada-shubina avatar Jun 23 '22 19:06 vlada-shubina

Should we consider blacklisting top level commands from allowed template names/shortnames?

JanKrivanek avatar Jun 28 '22 08:06 JanKrivanek

Should we consider blacklisting top level commands from allowed template names/shortnames?

Added to: https://github.com/dotnet/templating/issues/3828

vlada-shubina avatar Aug 23 '22 15:08 vlada-shubina