Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit d681933

Browse files
author
William Li
authored
Rename --source-feed to --add-source (#9164)
* Rename to add-source
1 parent d17f4ec commit d681933

35 files changed

+224
-224
lines changed

src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
<data name="VersionOptionDescription" xml:space="preserve">
130130
<value>Version of the tool package in NuGet.</value>
131131
</data>
132-
<data name="SourceFeedOptionDescription" xml:space="preserve">
132+
<data name="AddSourceOptionDescription" xml:space="preserve">
133133
<value>Adds an additional NuGet package source to use during installation.</value>
134134
</data>
135-
<data name="SourceFeedOptionName" xml:space="preserve">
136-
<value>SOURCE_FEED</value>
135+
<data name="AddSourceOptionName" xml:space="preserve">
136+
<value>SOURCE</value>
137137
</data>
138138
<data name="CommandDescription" xml:space="preserve">
139139
<value>Installs a tool for use on the command line.</value>
@@ -195,4 +195,4 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
195195
<data name="ToolPathDescription" xml:space="preserve">
196196
<value>Location where the tool will be installed.</value>
197197
</data>
198-
</root>
198+
</root>

src/dotnet/commands/dotnet-tool/install/ToolInstallCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public ToolInstallCommand(
5555
_packageVersion = appliedCommand.ValueOrDefault<string>("version");
5656
_configFilePath = appliedCommand.ValueOrDefault<string>("configfile");
5757
_framework = appliedCommand.ValueOrDefault<string>("framework");
58-
_source = appliedCommand.ValueOrDefault<string[]>("source-feed");
58+
_source = appliedCommand.ValueOrDefault<string[]>("add-source");
5959
_global = appliedCommand.ValueOrDefault<bool>("global");
6060
_verbosity = appliedCommand.SingleArgumentOrDefault("verbosity");
6161
_toolPath = appliedCommand.SingleArgumentOrDefault("tool-path");

src/dotnet/commands/dotnet-tool/install/ToolInstallCommandParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public static Command ToolInstall()
3232
LocalizableStrings.ConfigFileOptionDescription,
3333
Accept.ExactlyOneArgument()),
3434
Create.Option(
35-
"--source-feed",
36-
LocalizableStrings.SourceFeedOptionDescription,
35+
"--add-source",
36+
LocalizableStrings.AddSourceOptionDescription,
3737
Accept.OneOrMoreArguments()
38-
.With(name: LocalizableStrings.SourceFeedOptionName)),
38+
.With(name: LocalizableStrings.AddSourceOptionName)),
3939
Create.Option(
4040
"--framework",
4141
LocalizableStrings.FrameworkOptionDescription,

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
104104
<target state="translated">Umístění, do kterého se nástroj nainstaluje</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Přidá další zdroj balíčku NuGet, který se použije při instalaci.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
104104
<target state="translated">Speicherort für die Installation des Tools.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Fügt eine weitere NuGet-Paketquelle zur Verwendung während der Installation hinzu.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
104104
<target state="translated">La ubicación en la que se instalará la herramienta.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Agrega un origen de paquetes de NuGet para utilizar durante la instalación.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
104104
<target state="translated">Emplacement où l'outil va être installé.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Ajoute un package NuGet source supplémentaire à utiliser durant l'installation.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
104104
<target state="translated">Percorso in cui verrà installato lo strumento.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Aggiunge un'altra origine pacchetto NuGet da usare durante l'installazione.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
104104
<target state="translated">ツールがインストールされる場所。</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">インストール中に使用する他の NuGet パッケージ ソースを追加します。</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
104104
<target state="translated">도구가 설치될 위치입니다.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">설치 중 사용할 추가 NuGet 패키지 소스를 추가합니다.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
104104
<target state="translated">Lokalizacja, w której narzędzie zostanie zainstalowane.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Dodaje dodatkowe źródło pakietu NuGet do użycia podczas instalacji.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
104104
<target state="translated">Localização em que a ferramenta será instalada.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Adiciona uma origem adicional do pacote NuGet a ser usada durante a instalação.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ru.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
104104
<target state="translated">Расположение для установки средства.</target>
105105
<note />
106106
</trans-unit>
107-
<trans-unit id="SourceFeedOptionDescription">
108-
<source>Adds an additional NuGet package source to use during installation.</source>
109-
<target state="translated">Добавляет дополнительный источник пакета NuGet, используемый во время установки.</target>
110-
<note />
111-
</trans-unit>
112-
<trans-unit id="SourceFeedOptionName">
113-
<source>SOURCE_FEED</source>
114-
<target state="translated">SOURCE_FEED</target>
115-
<note />
116-
</trans-unit>
117107
<trans-unit id="ToolInstallationFailed">
118108
<source>Tool '{0}' failed to install.</source>
119109
<target state="new">Tool '{0}' failed to install.</target>
@@ -134,6 +124,16 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
134124
* You mistyped the name of the tool.</target>
135125
<note />
136126
</trans-unit>
127+
<trans-unit id="AddSourceOptionDescription">
128+
<source>Adds an additional NuGet package source to use during installation.</source>
129+
<target state="new">Adds an additional NuGet package source to use during installation.</target>
130+
<note />
131+
</trans-unit>
132+
<trans-unit id="AddSourceOptionName">
133+
<source>SOURCE</source>
134+
<target state="new">SOURCE</target>
135+
<note />
136+
</trans-unit>
137137
</body>
138138
</file>
139139
</xliff>

0 commit comments

Comments
 (0)