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

Commit 3f09a88

Browse files
author
William Lee
authored
Update tool (#8794)
1 parent 3d13658 commit 3f09a88

File tree

60 files changed

+2855
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2855
-57
lines changed

src/dotnet/BuiltInCommandsCatalog.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using Microsoft.DotNet.Tools.VSTest;
2323
using System.Collections.Generic;
2424
using Microsoft.DotNet.Tools.Install;
25+
using Microsoft.DotNet.Tools.Update;
2526

2627
namespace Microsoft.DotNet.Cli
2728
{
@@ -154,6 +155,10 @@ public static class BuiltInCommandsCatalog
154155
{
155156
Command = UninstallCommand.Run
156157
},
158+
["update"] = new BuiltInCommandMetadata
159+
{
160+
Command = UpdateCommand.Run
161+
},
157162
["internal-reportinstallsuccess"] = new BuiltInCommandMetadata
158163
{
159164
Command = InternalReportinstallsuccess.Run

src/dotnet/Parser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ private static void ConfigureCommandLineLocalizedStrings()
5757
InternalReportinstallsuccessCommandParser.InternalReportinstallsuccess(),
5858
InstallCommandParser.Install(),
5959
UninstallCommandParser.Uninstall(),
60+
UpdateCommandParser.Update(),
6061
CommonOptions.HelpOption(),
6162
Create.Option("--info", ""),
6263
Create.Option("-d", ""),

src/dotnet/commands/dotnet-help/HelpUsageText.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ internal static class HelpUsageText
3030
store {LocalizableStrings.StoreDefinition}
3131
install {LocalizableStrings.InstallDefinition}
3232
uninstall {LocalizableStrings.UninstallDefinition}
33+
update {LocalizableStrings.UpdateDefinition}
3334
help {LocalizableStrings.HelpDefinition}
3435
3536
{LocalizableStrings.CommonOptions}:

src/dotnet/commands/dotnet-help/LocalizableStrings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,7 @@
273273
<data name="UninstallDefinition" xml:space="preserve">
274274
<value>Uninstalls an item from the development environment.</value>
275275
</data>
276+
<data name="UpdateDefinition" xml:space="preserve">
277+
<value>Updates an item in the development environment.</value>
278+
</data>
276279
</root>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@
262262
<target state="new">Uninstalls an item from the development environment.</target>
263263
<note />
264264
</trans-unit>
265+
<trans-unit id="UpdateDefinition">
266+
<source>Updates an item in the development environment.</source>
267+
<target state="new">Updates an item in the development environment.</target>
268+
<note />
269+
</trans-unit>
265270
</body>
266271
</file>
267272
</xliff>

0 commit comments

Comments
 (0)