From 1856df61b62290afcdb353a75ade2e3e7b6f839e Mon Sep 17 00:00:00 2001 From: Erick Yondon Date: Thu, 13 Oct 2022 15:23:30 -0700 Subject: [PATCH 1/3] Add new option for json output of dotnet list package --- .../ListPackageReferencesCommandParser.cs | 6 ++++++ .../dotnet-list/dotnet-list-package/LocalizableStrings.resx | 3 +++ .../dotnet-list-package/xlf/LocalizableStrings.cs.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.de.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.es.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.fr.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.it.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.ja.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.ko.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.pl.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.ru.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.tr.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf | 5 +++++ .../dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf | 5 +++++ 15 files changed, 74 insertions(+) diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs index b79fbf9941df..cfdc86df8890 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs @@ -61,6 +61,11 @@ internal static class ListPackageReferencesCommandParser ArgumentHelpName = CommonLocalizableStrings.LevelArgumentName }.ForwardAsSingle(o => $"--verbosity:{o}"); + public static readonly Option FormatOption = new ForwardedOption("--format", LocalizableStrings.CmdFormatDescription) + { + ArgumentHelpName = LocalizableStrings.CmdConfig + }.ForwardAsMany(o => new[] { "--format", o }); + private static readonly Command Command = ConstructCommand(); public static Command GetCommand() @@ -84,6 +89,7 @@ private static Command ConstructCommand() command.AddOption(ConfigOption); command.AddOption(SourceOption); command.AddOption(InteractiveOption); + command.AddOption(FormatOption); command.SetHandler((parseResult) => new ListPackageReferencesCommand(parseResult).Execute()); diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx index 251d3430b9f7..cb46ac7fad4d 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx @@ -168,4 +168,7 @@ Lists packages that have known vulnerabilities. Cannot be combined with '--deprecated' or '--outdated' options. + + Specify output format type for list packages command. Requires the "console", "json" option. + diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf index 4af9278800a6..3e26deb27c89 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf @@ -12,6 +12,11 @@ Vypíše balíčky, které jsou zastaralé. Nedá se kombinovat s možností --vulnerable ani --outdated. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf index 7e0148022346..203e4c755369 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf @@ -12,6 +12,11 @@ Listet Pakete auf, die veraltet sind. Kann nicht mit den Optionen "--vulnerable" oder "--outdated" kombiniert werden. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf index 350bf8d1c1e0..9ec27fa012d8 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf @@ -12,6 +12,11 @@ Muestra los paquetes que han quedado en desuso. No se puede combinar con las opciones "--outdated" o "--vulnerable". + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf index b715f3a046ad..2f905ecc7dfc 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf @@ -12,6 +12,11 @@ Liste les packages qui ont été dépréciés. Impossible à combiner avec les options '--vulnerable' ou '--outdated'. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf index ed1320b58938..96772888fe7c 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf @@ -12,6 +12,11 @@ Elenca i pacchetti che sono stati deprecati. Non può essere combinato con l'opzione '--vulnerable' o '--outdated'. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf index 34902228bb99..c9ff7a94680d 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf @@ -12,6 +12,11 @@ 非推奨化されたパッケージを一覧表示します。'--vulnerable' または '--outdated' オプションと組み合わせることはできません。 + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf index 3f0cf2d88ff4..8a22b6334b43 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf @@ -12,6 +12,11 @@ 사용되지 않는 패키지를 나열합니다. '--vulnerable' 또는 '--outdated' 옵션과 함께 사용할 수 없습니다. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf index d34c9eba780a..f2c6ae428a60 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf @@ -12,6 +12,11 @@ Wyświetla pakiety, które są przestarzałe. Nie można łączyć z opcją „--vulnerable” ani „--outdated”. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf index b09e9cb1e8e0..d7bfad850093 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf @@ -12,6 +12,11 @@ Lista os pacotes que foram preteridos. Não pode ser combinado com a opção '--vulnerable' nem com a opção '--outdated'. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf index 2388edb5fb29..07708fa61475 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf @@ -12,6 +12,11 @@ Возвращает список устаревших пакетов. Не может использоваться с параметрами "--vulnerable" или "--outdated". + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf index 362f091e50c8..e39f40beb802 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf @@ -12,6 +12,11 @@ Kullanım dışı bırakılan paketleri listeler. '--vulnerable' veya '--outdated' seçenekleriyle birleştirilemez. + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf index b8d08f896736..d8790c70db4e 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf @@ -12,6 +12,11 @@ 列出已被弃用的包。不能与 "--vulnerable" 或 "--outdated" 选项结合使用。 + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf index 2c292bed1aa9..cb0c9d2cceea 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf @@ -12,6 +12,11 @@ 列出已淘汰的套件。無法與 '--vulnerable' 或 '--outdated' 選項一併使用。 + + Specify output format type for list packages command. Requires the "console", "json" option. + Specify output format type for list packages command. Requires the "console", "json" option. + + FRAMEWORK | FRAMEWORK\RID FRAMEWORK | FRAMEWORK\RID From f48a0dfee79c7fcd3874cbdd613910cf61c48075 Mon Sep 17 00:00:00 2001 From: Erick Yondon Date: Tue, 15 Nov 2022 21:27:22 -0800 Subject: [PATCH 2/3] Address PR comment --- .../ListPackageReferencesCommandParser.cs | 9 ++++----- .../dotnet-list-package/LocalizableStrings.resx | 5 ++++- .../dotnet-list-package/ReportOutputFormat.cs | 11 +++++++++++ .../dotnet-list-package/xlf/LocalizableStrings.cs.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.de.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.es.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.fr.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.it.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.ja.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.ko.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.pl.xlf | 9 +++++++-- .../xlf/LocalizableStrings.pt-BR.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.ru.xlf | 9 +++++++-- .../dotnet-list-package/xlf/LocalizableStrings.tr.xlf | 9 +++++++-- .../xlf/LocalizableStrings.zh-Hans.xlf | 9 +++++++-- .../xlf/LocalizableStrings.zh-Hant.xlf | 9 +++++++-- 16 files changed, 110 insertions(+), 32 deletions(-) create mode 100644 src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ReportOutputFormat.cs diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs index cfdc86df8890..a6153451a1ea 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs @@ -1,10 +1,9 @@ // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Invocation; -using System.CommandLine.Parsing; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.List.PackageReferences; using LocalizableStrings = Microsoft.DotNet.Tools.List.PackageReferences.LocalizableStrings; @@ -61,10 +60,10 @@ internal static class ListPackageReferencesCommandParser ArgumentHelpName = CommonLocalizableStrings.LevelArgumentName }.ForwardAsSingle(o => $"--verbosity:{o}"); - public static readonly Option FormatOption = new ForwardedOption("--format", LocalizableStrings.CmdFormatDescription) + public static readonly Option FormatOption = new ForwardedOption("--format", LocalizableStrings.CmdFormatDescription) { - ArgumentHelpName = LocalizableStrings.CmdConfig - }.ForwardAsMany(o => new[] { "--format", o }); + ArgumentHelpName = LocalizableStrings.CmdFormat + }.ForwardAsSingle(o => $"--format:{o}"); private static readonly Command Command = ConstructCommand(); diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx index cb46ac7fad4d..8aa73a819ebc 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx @@ -169,6 +169,9 @@ Lists packages that have known vulnerabilities. Cannot be combined with '--deprecated' or '--outdated' options. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + + + FORMAT diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ReportOutputFormat.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ReportOutputFormat.cs new file mode 100644 index 000000000000..138252a3eaec --- /dev/null +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ReportOutputFormat.cs @@ -0,0 +1,11 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.DotNet.Cli +{ + internal enum ReportOutputFormat + { + console = 0, + json = 1 + } +} diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf index 3e26deb27c89..6c6283a25097 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf @@ -12,9 +12,14 @@ Vypíše balíčky, které jsou zastaralé. Nedá se kombinovat s možností --vulnerable ani --outdated. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf index 203e4c755369..a473e953a698 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf @@ -12,9 +12,14 @@ Listet Pakete auf, die veraltet sind. Kann nicht mit den Optionen "--vulnerable" oder "--outdated" kombiniert werden. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf index 9ec27fa012d8..82bcb7f2f0f6 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf @@ -12,9 +12,14 @@ Muestra los paquetes que han quedado en desuso. No se puede combinar con las opciones "--outdated" o "--vulnerable". + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf index 2f905ecc7dfc..9c9eb049656b 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf @@ -12,9 +12,14 @@ Liste les packages qui ont été dépréciés. Impossible à combiner avec les options '--vulnerable' ou '--outdated'. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf index 96772888fe7c..439d2d60c99f 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf @@ -12,9 +12,14 @@ Elenca i pacchetti che sono stati deprecati. Non può essere combinato con l'opzione '--vulnerable' o '--outdated'. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf index c9ff7a94680d..6c589b84708a 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf @@ -12,9 +12,14 @@ 非推奨化されたパッケージを一覧表示します。'--vulnerable' または '--outdated' オプションと組み合わせることはできません。 + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf index 8a22b6334b43..b776760217d6 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf @@ -12,9 +12,14 @@ 사용되지 않는 패키지를 나열합니다. '--vulnerable' 또는 '--outdated' 옵션과 함께 사용할 수 없습니다. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf index f2c6ae428a60..3983835ee7e8 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf @@ -12,9 +12,14 @@ Wyświetla pakiety, które są przestarzałe. Nie można łączyć z opcją „--vulnerable” ani „--outdated”. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf index d7bfad850093..d8e597da022b 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf @@ -12,9 +12,14 @@ Lista os pacotes que foram preteridos. Não pode ser combinado com a opção '--vulnerable' nem com a opção '--outdated'. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf index 07708fa61475..9e77b301b675 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf @@ -12,9 +12,14 @@ Возвращает список устаревших пакетов. Не может использоваться с параметрами "--vulnerable" или "--outdated". + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf index e39f40beb802..412208061b02 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf @@ -12,9 +12,14 @@ Kullanım dışı bırakılan paketleri listeler. '--vulnerable' veya '--outdated' seçenekleriyle birleştirilemez. + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf index d8790c70db4e..a57aef05930d 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf @@ -12,9 +12,14 @@ 列出已被弃用的包。不能与 "--vulnerable" 或 "--outdated" 选项结合使用。 + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf index cb0c9d2cceea..8b9a2b6d4750 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf @@ -12,9 +12,14 @@ 列出已淘汰的套件。無法與 '--vulnerable' 或 '--outdated' 選項一併使用。 + + FORMAT + FORMAT + + - Specify output format type for list packages command. Requires the "console", "json" option. - Specify output format type for list packages command. Requires the "console", "json" option. + Specifies the output format type for the list packages command. + Specifies the output format type for the list packages command. From d2e45e91a2a42e11f5270173ff0f780e11e5ffd2 Mon Sep 17 00:00:00 2001 From: Erick Yondon Date: Wed, 16 Nov 2022 09:16:33 -0800 Subject: [PATCH 3/3] Fix list package report suggestions --- .../ListPackageReferencesCommandParser.cs | 4 +--- .../dotnet-list/dotnet-list-package/LocalizableStrings.resx | 5 +---- .../dotnet-list-package/xlf/LocalizableStrings.cs.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.de.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.es.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.fr.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.it.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.ja.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.ko.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.pl.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.ru.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.tr.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf | 5 ----- .../dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf | 5 ----- 15 files changed, 2 insertions(+), 72 deletions(-) diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs index a6153451a1ea..3659f85b0db5 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs @@ -61,9 +61,7 @@ internal static class ListPackageReferencesCommandParser }.ForwardAsSingle(o => $"--verbosity:{o}"); public static readonly Option FormatOption = new ForwardedOption("--format", LocalizableStrings.CmdFormatDescription) - { - ArgumentHelpName = LocalizableStrings.CmdFormat - }.ForwardAsSingle(o => $"--format:{o}"); + { }.ForwardAsSingle(o => $"--format:{o}"); private static readonly Command Command = ConstructCommand(); diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx index 8aa73a819ebc..93e0d6224b2e 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/LocalizableStrings.resx @@ -171,7 +171,4 @@ Specifies the output format type for the list packages command. - - FORMAT - - + \ No newline at end of file diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf index 6c6283a25097..bf0d79c067f2 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.cs.xlf @@ -12,11 +12,6 @@ Vypíše balíčky, které jsou zastaralé. Nedá se kombinovat s možností --vulnerable ani --outdated. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf index a473e953a698..7dfe774ae7cb 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.de.xlf @@ -12,11 +12,6 @@ Listet Pakete auf, die veraltet sind. Kann nicht mit den Optionen "--vulnerable" oder "--outdated" kombiniert werden. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf index 82bcb7f2f0f6..346843860d4b 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.es.xlf @@ -12,11 +12,6 @@ Muestra los paquetes que han quedado en desuso. No se puede combinar con las opciones "--outdated" o "--vulnerable". - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf index 9c9eb049656b..489ed361570a 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.fr.xlf @@ -12,11 +12,6 @@ Liste les packages qui ont été dépréciés. Impossible à combiner avec les options '--vulnerable' ou '--outdated'. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf index 439d2d60c99f..5ffb32d36fb0 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.it.xlf @@ -12,11 +12,6 @@ Elenca i pacchetti che sono stati deprecati. Non può essere combinato con l'opzione '--vulnerable' o '--outdated'. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf index 6c589b84708a..182362d95f84 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ja.xlf @@ -12,11 +12,6 @@ 非推奨化されたパッケージを一覧表示します。'--vulnerable' または '--outdated' オプションと組み合わせることはできません。 - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf index b776760217d6..94b652f59880 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ko.xlf @@ -12,11 +12,6 @@ 사용되지 않는 패키지를 나열합니다. '--vulnerable' 또는 '--outdated' 옵션과 함께 사용할 수 없습니다. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf index 3983835ee7e8..c4fdf4a6c726 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pl.xlf @@ -12,11 +12,6 @@ Wyświetla pakiety, które są przestarzałe. Nie można łączyć z opcją „--vulnerable” ani „--outdated”. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf index d8e597da022b..455995367633 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.pt-BR.xlf @@ -12,11 +12,6 @@ Lista os pacotes que foram preteridos. Não pode ser combinado com a opção '--vulnerable' nem com a opção '--outdated'. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf index 9e77b301b675..9a60981c49e6 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.ru.xlf @@ -12,11 +12,6 @@ Возвращает список устаревших пакетов. Не может использоваться с параметрами "--vulnerable" или "--outdated". - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf index 412208061b02..ca7e9232baa2 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.tr.xlf @@ -12,11 +12,6 @@ Kullanım dışı bırakılan paketleri listeler. '--vulnerable' veya '--outdated' seçenekleriyle birleştirilemez. - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf index a57aef05930d..a0e6176f5497 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hans.xlf @@ -12,11 +12,6 @@ 列出已被弃用的包。不能与 "--vulnerable" 或 "--outdated" 选项结合使用。 - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command. diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf index 8b9a2b6d4750..dd90672e66c9 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/xlf/LocalizableStrings.zh-Hant.xlf @@ -12,11 +12,6 @@ 列出已淘汰的套件。無法與 '--vulnerable' 或 '--outdated' 選項一併使用。 - - FORMAT - FORMAT - - Specifies the output format type for the list packages command. Specifies the output format type for the list packages command.