Skip to content

Implement Template Options Filtering #42541

Open
@v-wuzhai

Description

@v-wuzhai

Description

Currently, when using the dotnet new command to search for or list templates, it is not possible to filter based on template options. This enhancement will allow users to precisely search for or list the templates they need by specifying options, both in search and list functionalities.

The command should filter based on the specified template options and return a list of matching templates. After implementing the feature, re-enable the following skipped tests:

  1. CanFilterByNonChoiceParameter
  2. IgnoresValueForNonChoiceParameter
  3. CanFilterByChoiceParameterWithValue
  4. CannotSearchTemplatesWithUnknownParameter
  5. CanFilterByChoiceParameter
  6. CanFilterByChoiceParameter
  7. CanFilterByNonChoiceParameter
  8. IgnoresValueForNonChoiceParameter
  9. CanFilterByChoiceParameterWithValue
  10. CannotListTemplatesWithUnknownParameter
  11. CannotListTemplatesWithUnknownValueForChoiceParameter
  12. CannotListTemplatesForInvalidFilters
  13. CanReadCliData
  14. CanReadCliDataFromDiff

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions