Rename --source-feed to --add-source (#9164)

* Rename to add-source
This commit is contained in:
William Li 2018-05-01 10:21:00 -07:00 committed by GitHub
parent d17f4ec94e
commit d681933b87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 224 additions and 224 deletions

View file

@ -129,11 +129,11 @@
<data name="VersionOptionDescription" xml:space="preserve"> <data name="VersionOptionDescription" xml:space="preserve">
<value>Version of the tool package in NuGet.</value> <value>Version of the tool package in NuGet.</value>
</data> </data>
<data name="SourceFeedOptionDescription" xml:space="preserve"> <data name="AddSourceOptionDescription" xml:space="preserve">
<value>Adds an additional NuGet package source to use during installation.</value> <value>Adds an additional NuGet package source to use during installation.</value>
</data> </data>
<data name="SourceFeedOptionName" xml:space="preserve"> <data name="AddSourceOptionName" xml:space="preserve">
<value>SOURCE_FEED</value> <value>SOURCE</value>
</data> </data>
<data name="CommandDescription" xml:space="preserve"> <data name="CommandDescription" xml:space="preserve">
<value>Installs a tool for use on the command line.</value> <value>Installs a tool for use on the command line.</value>
@ -195,4 +195,4 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
<data name="ToolPathDescription" xml:space="preserve"> <data name="ToolPathDescription" xml:space="preserve">
<value>Location where the tool will be installed.</value> <value>Location where the tool will be installed.</value>
</data> </data>
</root> </root>

View file

@ -55,7 +55,7 @@ namespace Microsoft.DotNet.Tools.Tool.Install
_packageVersion = appliedCommand.ValueOrDefault<string>("version"); _packageVersion = appliedCommand.ValueOrDefault<string>("version");
_configFilePath = appliedCommand.ValueOrDefault<string>("configfile"); _configFilePath = appliedCommand.ValueOrDefault<string>("configfile");
_framework = appliedCommand.ValueOrDefault<string>("framework"); _framework = appliedCommand.ValueOrDefault<string>("framework");
_source = appliedCommand.ValueOrDefault<string[]>("source-feed"); _source = appliedCommand.ValueOrDefault<string[]>("add-source");
_global = appliedCommand.ValueOrDefault<bool>("global"); _global = appliedCommand.ValueOrDefault<bool>("global");
_verbosity = appliedCommand.SingleArgumentOrDefault("verbosity"); _verbosity = appliedCommand.SingleArgumentOrDefault("verbosity");
_toolPath = appliedCommand.SingleArgumentOrDefault("tool-path"); _toolPath = appliedCommand.SingleArgumentOrDefault("tool-path");

View file

@ -32,10 +32,10 @@ namespace Microsoft.DotNet.Cli
LocalizableStrings.ConfigFileOptionDescription, LocalizableStrings.ConfigFileOptionDescription,
Accept.ExactlyOneArgument()), Accept.ExactlyOneArgument()),
Create.Option( Create.Option(
"--source-feed", "--add-source",
LocalizableStrings.SourceFeedOptionDescription, LocalizableStrings.AddSourceOptionDescription,
Accept.OneOrMoreArguments() Accept.OneOrMoreArguments()
.With(name: LocalizableStrings.SourceFeedOptionName)), .With(name: LocalizableStrings.AddSourceOptionName)),
Create.Option( Create.Option(
"--framework", "--framework",
LocalizableStrings.FrameworkOptionDescription, LocalizableStrings.FrameworkOptionDescription,

View file

@ -104,16 +104,6 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
<target state="translated">Umístění, do kterého se nástroj nainstaluje</target> <target state="translated">Umístění, do kterého se nástroj nainstaluje</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Přidá další zdroj balíčku NuGet, který se použije při instalaci.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
<target state="translated">Speicherort für die Installation des Tools.</target> <target state="translated">Speicherort für die Installation des Tools.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Fügt eine weitere NuGet-Paketquelle zur Verwendung während der Installation hinzu.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
<target state="translated">La ubicación en la que se instalará la herramienta.</target> <target state="translated">La ubicación en la que se instalará la herramienta.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Agrega un origen de paquetes de NuGet para utilizar durante la instalación.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
<target state="translated">Emplacement où l'outil va être installé.</target> <target state="translated">Emplacement où l'outil va être installé.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Ajoute un package NuGet source supplémentaire à utiliser durant l'installation.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
<target state="translated">Percorso in cui verrà installato lo strumento.</target> <target state="translated">Percorso in cui verrà installato lo strumento.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Aggiunge un'altra origine pacchetto NuGet da usare durante l'installazione.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">ツールがインストールされる場所。</target> <target state="translated">ツールがインストールされる場所。</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">インストール中に使用する他の NuGet パッケージ ソースを追加します。</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">도구가 설치될 위치입니다.</target> <target state="translated">도구가 설치될 위치입니다.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">설치 중 사용할 추가 NuGet 패키지 소스를 추가합니다.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
<target state="translated">Lokalizacja, w której narzędzie zostanie zainstalowane.</target> <target state="translated">Lokalizacja, w której narzędzie zostanie zainstalowane.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Dodaje dodatkowe źródło pakietu NuGet do użycia podczas instalacji.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
<target state="translated">Localização em que a ferramenta será instalada.</target> <target state="translated">Localização em que a ferramenta será instalada.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Adiciona uma origem adicional do pacote NuGet a ser usada durante a instalação.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">Расположение для установки средства.</target> <target state="translated">Расположение для установки средства.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Добавляет дополнительный источник пакета NuGet, используемый во время установки.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">Aracın yükleneceği konum.</target> <target state="translated">Aracın yükleneceği konum.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">Yükleme sırasında kullanılacak ek bir NuGet paket kaynağı ekler.</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">将安装工具的位置。</target> <target state="translated">将安装工具的位置。</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">添加其他要在安装期间使用的 NuGet 包。</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
<target state="translated">安裝工具所在的位置。</target> <target state="translated">安裝工具所在的位置。</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="translated">新增於安裝期間要使用的額外 NuGet 套件來源。</target>
<note />
</trans-unit>
<trans-unit id="SourceFeedOptionName">
<source>SOURCE_FEED</source>
<target state="translated">SOURCE_FEED</target>
<note />
</trans-unit>
<trans-unit id="ToolInstallationFailed"> <trans-unit id="ToolInstallationFailed">
<source>Tool '{0}' failed to install.</source> <source>Tool '{0}' failed to install.</source>
<target state="new">Tool '{0}' failed to install.</target> <target state="new">Tool '{0}' failed to install.</target>
@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
* You mistyped the name of the tool.</target> * You mistyped the name of the tool.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during installation.</source>
<target state="new">Adds an additional NuGet package source to use during installation.</target>
<note />
</trans-unit>
<trans-unit id="AddSourceOptionName">
<source>SOURCE</source>
<target state="new">SOURCE</target>
<note />
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -129,11 +129,11 @@
<data name="VersionOptionDescription" xml:space="preserve"> <data name="VersionOptionDescription" xml:space="preserve">
<value>Version of the tool package in NuGet.</value> <value>Version of the tool package in NuGet.</value>
</data> </data>
<data name="SourceFeedOptionDescription" xml:space="preserve"> <data name="AddSourceOptionDescription" xml:space="preserve">
<value>Adds an additional NuGet package source to use during update.</value> <value>Adds an additional NuGet package source to use during update.</value>
</data> </data>
<data name="SourceFeedOptionName" xml:space="preserve"> <data name="AddSourceOptionName" xml:space="preserve">
<value>SOURCE_FEED</value> <value>ADD_SOURCE</value>
</data> </data>
<data name="CommandDescription" xml:space="preserve"> <data name="CommandDescription" xml:space="preserve">
<value>Updates a tool to the latest stable version for use.</value> <value>Updates a tool to the latest stable version for use.</value>

View file

@ -52,7 +52,7 @@ namespace Microsoft.DotNet.Tools.Tool.Update
_packageId = new PackageId(appliedCommand.Arguments.Single()); _packageId = new PackageId(appliedCommand.Arguments.Single());
_configFilePath = appliedCommand.ValueOrDefault<string>("configfile"); _configFilePath = appliedCommand.ValueOrDefault<string>("configfile");
_framework = appliedCommand.ValueOrDefault<string>("framework"); _framework = appliedCommand.ValueOrDefault<string>("framework");
_additionalFeeds = appliedCommand.ValueOrDefault<string[]>("source-feed"); _additionalFeeds = appliedCommand.ValueOrDefault<string[]>("add-source");
_global = appliedCommand.ValueOrDefault<bool>("global"); _global = appliedCommand.ValueOrDefault<bool>("global");
_verbosity = appliedCommand.SingleArgumentOrDefault("verbosity"); _verbosity = appliedCommand.SingleArgumentOrDefault("verbosity");
_toolPath = appliedCommand.SingleArgumentOrDefault("tool-path"); _toolPath = appliedCommand.SingleArgumentOrDefault("tool-path");

View file

@ -28,10 +28,10 @@ namespace Microsoft.DotNet.Cli
LocalizableStrings.ConfigFileOptionDescription, LocalizableStrings.ConfigFileOptionDescription,
Accept.ExactlyOneArgument()), Accept.ExactlyOneArgument()),
Create.Option( Create.Option(
"--source-feed", "--add-source",
LocalizableStrings.SourceFeedOptionDescription, LocalizableStrings.AddSourceOptionDescription,
Accept.OneOrMoreArguments() Accept.OneOrMoreArguments()
.With(name: LocalizableStrings.SourceFeedOptionName)), .With(name: LocalizableStrings.AddSourceOptionName)),
Create.Option( Create.Option(
"--framework", "--framework",
LocalizableStrings.FrameworkOptionDescription, LocalizableStrings.FrameworkOptionDescription,

View file

@ -92,14 +92,14 @@
<target state="translated">Aktualizace nástroje {0} se nezdařila z následujícího důvodu:</target> <target state="translated">Aktualizace nástroje {0} se nezdařila z následujícího důvodu:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Přidá další zdroj balíčku NuGet, který se použije při aktualizaci.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Fehler beim Update des Tools "{0}". Ursache:</target> <target state="translated">Fehler beim Update des Tools "{0}". Ursache:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Fügt eine weitere NuGet-Paketquelle zur Verwendung während des Updates hinzu.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">La herramienta "{0}" no se pudo actualizar debido a lo siguiente:</target> <target state="translated">La herramienta "{0}" no se pudo actualizar debido a lo siguiente:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Agrega un origen de paquetes de NuGet para utilizar durante la actualización.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Échec de la mise à jour de l'outil '{0}' pour la ou les raisons suivantes :</target> <target state="translated">Échec de la mise à jour de l'outil '{0}' pour la ou les raisons suivantes :</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Ajoute un package NuGet source supplémentaire à utiliser durant la mise à jour.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">L'aggiornamento dello strumento '{0}' non è riuscito. Motivi:</target> <target state="translated">L'aggiornamento dello strumento '{0}' non è riuscito. Motivi:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Aggiunge un'altra origine pacchetto NuGet da usare durante l'aggiornamento.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">ツール '{0}' を更新できませんでした。原因:</target> <target state="translated">ツール '{0}' を更新できませんでした。原因:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">更新中に使用する他の NuGet パッケージ ソースを追加します。</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">다음으로 인해 '{0}' 도구를 업데이트하지 못했습니다.</target> <target state="translated">다음으로 인해 '{0}' 도구를 업데이트하지 못했습니다.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">업데이트 중 사용할 추가 NuGet 패키지 소스를 추가합니다.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Aktualizacja narzędzia „{0}” nie powiodła się z następującego powodu:</target> <target state="translated">Aktualizacja narzędzia „{0}” nie powiodła się z następującego powodu:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Dodaje dodatkowe źródło pakietu NuGet do użycia podczas aktualizacji.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Falha ao atualizar a ferramenta '{0}' devido ao seguinte motivo:</target> <target state="translated">Falha ao atualizar a ferramenta '{0}' devido ao seguinte motivo:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Adiciona uma origem adicional do pacote NuGet para ser usada durante a atualização.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Не удалось обновить инструмент "{0}" по следующей причине:</target> <target state="translated">Не удалось обновить инструмент "{0}" по следующей причине:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Добавляет дополнительный источник пакета NuGet, используемый во время обновления.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">Aşağıdaki nedenlerle '{0}' aracı güncelleştirilemedi:</target> <target state="translated">Aşağıdaki nedenlerle '{0}' aracı güncelleştirilemedi:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">Güncelleştirme sırasında kullanılacak ek bir NuGet paket kaynağı ekler.</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">工具“{0}”因以下原因而未能更新:</target> <target state="translated">工具“{0}”因以下原因而未能更新:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">添加其他要在更新期间使用的 NuGet 包。</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -92,14 +92,14 @@
<target state="translated">由於下列原因,因此工具 '{0}' 無法更新:</target> <target state="translated">由於下列原因,因此工具 '{0}' 無法更新:</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionDescription"> <trans-unit id="AddSourceOptionDescription">
<source>Adds an additional NuGet package source to use during update.</source> <source>Adds an additional NuGet package source to use during update.</source>
<target state="translated">新增於更新期間要使用的額外 NuGet 套件來源。</target> <target state="new">Adds an additional NuGet package source to use during update.</target>
<note /> <note />
</trans-unit> </trans-unit>
<trans-unit id="SourceFeedOptionName"> <trans-unit id="AddSourceOptionName">
<source>SOURCE_FEED</source> <source>ADD_SOURCE</source>
<target state="translated">SOURCE_FEED</target> <target state="new">ADD_SOURCE</target>
<note /> <note />
</trans-unit> </trans-unit>
</body> </body>

View file

@ -85,10 +85,10 @@ namespace Microsoft.DotNet.Tests.Commands
public void WhenRunWithPackageIdWithSourceItShouldCreateValidShim() public void WhenRunWithPackageIdWithSourceItShouldCreateValidShim()
{ {
const string sourcePath = "http://mysouce.com"; const string sourcePath = "http://mysouce.com";
ParseResult result = Parser.Instance.Parse($"dotnet tool install -g {PackageId} --source-feed {sourcePath}"); ParseResult result = Parser.Instance.Parse($"dotnet tool install -g {PackageId} --add-source {sourcePath}");
AppliedOption appliedCommand = result["dotnet"]["tool"]["install"]; AppliedOption appliedCommand = result["dotnet"]["tool"]["install"];
ParseResult parseResult = ParseResult parseResult =
Parser.Instance.ParseFrom("dotnet tool", new[] { "install", "-g", PackageId, "--source-feed", sourcePath }); Parser.Instance.ParseFrom("dotnet tool", new[] { "install", "-g", PackageId, "--add-source", sourcePath });
var toolToolPackageInstaller = CreateToolPackageInstaller( var toolToolPackageInstaller = CreateToolPackageInstaller(

View file

@ -55,10 +55,10 @@ namespace Microsoft.DotNet.Tests.ParserTests
const string expectedSourceValue = "TestSourceValue"; const string expectedSourceValue = "TestSourceValue";
var result = var result =
Parser.Instance.Parse($"dotnet tool install -g --source-feed {expectedSourceValue} console.test.app"); Parser.Instance.Parse($"dotnet tool install -g --add-source {expectedSourceValue} console.test.app");
var appliedOptions = result["dotnet"]["tool"]["install"]; var appliedOptions = result["dotnet"]["tool"]["install"];
appliedOptions.ValueOrDefault<string[]>("source-feed").First().Should().Be(expectedSourceValue); appliedOptions.ValueOrDefault<string[]>("add-source").First().Should().Be(expectedSourceValue);
} }
[Fact] [Fact]
@ -70,13 +70,13 @@ namespace Microsoft.DotNet.Tests.ParserTests
var result = var result =
Parser.Instance.Parse( Parser.Instance.Parse(
$"dotnet tool install -g " + $"dotnet tool install -g " +
$"--source-feed {expectedSourceValue1} " + $"--add-source {expectedSourceValue1} " +
$"--source-feed {expectedSourceValue2} console.test.app"); $"--add-source {expectedSourceValue2} console.test.app");
var appliedOptions = result["dotnet"]["tool"]["install"]; var appliedOptions = result["dotnet"]["tool"]["install"];
appliedOptions.ValueOrDefault<string[]>("source-feed")[0].Should().Be(expectedSourceValue1); appliedOptions.ValueOrDefault<string[]>("add-source")[0].Should().Be(expectedSourceValue1);
appliedOptions.ValueOrDefault<string[]>("source-feed")[1].Should().Be(expectedSourceValue2); appliedOptions.ValueOrDefault<string[]>("add-source")[1].Should().Be(expectedSourceValue2);
} }
[Fact] [Fact]

View file

@ -62,10 +62,10 @@ namespace Microsoft.DotNet.Tests.ParserTests
const string expectedSourceValue = "TestSourceValue"; const string expectedSourceValue = "TestSourceValue";
var result = var result =
Parser.Instance.Parse($"dotnet tool update -g --source-feed {expectedSourceValue} console.test.app"); Parser.Instance.Parse($"dotnet tool update -g --add-source {expectedSourceValue} console.test.app");
var appliedOptions = result["dotnet"]["tool"]["update"]; var appliedOptions = result["dotnet"]["tool"]["update"];
appliedOptions.ValueOrDefault<string[]>("source-feed").First().Should().Be(expectedSourceValue); appliedOptions.ValueOrDefault<string[]>("add-source").First().Should().Be(expectedSourceValue);
} }
[Fact] [Fact]
@ -77,13 +77,13 @@ namespace Microsoft.DotNet.Tests.ParserTests
var result = var result =
Parser.Instance.Parse( Parser.Instance.Parse(
$"dotnet tool update -g " + $"dotnet tool update -g " +
$"--source-feed {expectedSourceValue1} " + $"--add-source {expectedSourceValue1} " +
$"--source-feed {expectedSourceValue2} console.test.app"); $"--add-source {expectedSourceValue2} console.test.app");
var appliedOptions = result["dotnet"]["tool"]["update"]; var appliedOptions = result["dotnet"]["tool"]["update"];
appliedOptions.ValueOrDefault<string[]>("source-feed")[0].Should().Be(expectedSourceValue1); appliedOptions.ValueOrDefault<string[]>("add-source")[0].Should().Be(expectedSourceValue1);
appliedOptions.ValueOrDefault<string[]>("source-feed")[1].Should().Be(expectedSourceValue2); appliedOptions.ValueOrDefault<string[]>("add-source")[1].Should().Be(expectedSourceValue2);
} }
[Fact] [Fact]