dotnet-installer/src/dotnet/commands/dotnet-tool/ToolCommandParser.cs
William Lee 149bdfd0fa
Change command order for tools (#8862)
dotnet install tool -> dotnet tool install
dotnet uninstall tool -> dotnet tool uninstall
dotnet list tool -> dotnet tool list
dotnet update tool -> dotnet tool update
2018-03-21 19:12:32 -07:00

24 lines
856 B
C#

// 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 Microsoft.DotNet.Cli.CommandLine;
using LocalizableStrings = Microsoft.DotNet.Tools.Tool.LocalizableStrings;
namespace Microsoft.DotNet.Cli
{
internal static class ToolCommandParser
{
public static Command Tool()
{
return Create.Command(
"tool",
LocalizableStrings.CommandDescription,
Accept.NoArguments(),
CommonOptions.HelpOption(),
ToolInstallCommandParser.ToolInstall(),
ToolUninstallCommandParser.ToolUninstall(),
ToolUpdateCommandParser.ToolUpdate(),
ToolListCommandParser.ToolList());
}
}
}