From 2e773796ff048b05455b8dfd69110c1e142a1524 Mon Sep 17 00:00:00 2001 From: Vlada Shubina Date: Mon, 25 Oct 2021 20:05:16 +0200 Subject: [PATCH] Args.Language implementation --- src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs b/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs index 2a781d113d..f57d00bc96 100644 --- a/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs +++ b/src/Microsoft.TemplateEngine.Cli/Commands/SearchCommand.cs @@ -144,6 +144,8 @@ internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult) : Filters = ParseFilters(command, parseResult); (DisplayAllColumns, ColumnsToDisplay) = ParseTabularOutputSettings(command, parseResult); + Filters.TryGetValue(FilterOptionDefinition.LanguageFilter, out string? language); + Language = language; } public IReadOnlyDictionary Filters { get; } @@ -154,7 +156,6 @@ internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult) : internal string? SearchNameCriteria { get; } - //TODO: internal string? Language { get; } } }