2018-01-28 13:35:04 -08:00
|
|
|
// 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;
|
2018-03-21 19:12:32 -07:00
|
|
|
using LocalizableStrings = Microsoft.DotNet.Tools.Tool.LocalizableStrings;
|
2018-01-28 13:35:04 -08:00
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli
|
|
|
|
{
|
2018-03-21 19:12:32 -07:00
|
|
|
internal static class ToolCommandParser
|
2018-01-28 13:35:04 -08:00
|
|
|
{
|
2018-03-21 19:12:32 -07:00
|
|
|
public static Command Tool()
|
2018-01-28 13:35:04 -08:00
|
|
|
{
|
|
|
|
return Create.Command(
|
2018-03-21 19:12:32 -07:00
|
|
|
"tool",
|
2018-01-28 13:35:04 -08:00
|
|
|
LocalizableStrings.CommandDescription,
|
|
|
|
Accept.NoArguments(),
|
|
|
|
CommonOptions.HelpOption(),
|
2018-03-21 19:12:32 -07:00
|
|
|
ToolInstallCommandParser.ToolInstall(),
|
|
|
|
ToolUninstallCommandParser.ToolUninstall(),
|
|
|
|
ToolUpdateCommandParser.ToolUpdate(),
|
|
|
|
ToolListCommandParser.ToolList());
|
2018-01-28 13:35:04 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|