dotnet / dotnet/sdk

Implement Template Options Filtering

Open
#42,541 0 comments 1 reaction 1 assignee Claimed by @nagilson View on GitHub
Area-CLI Area-Templates
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### 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

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.