Implement list tool
command.
This commit implements the `list tool` command. The command is responsible for displaying a list of install global tools. Fixes #8548.
This commit is contained in:
parent
9ef495327a
commit
4490fd5aa8
56 changed files with 1043 additions and 200 deletions
|
@ -0,0 +1,23 @@
|
|||
// 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.List.Tool.LocalizableStrings;
|
||||
|
||||
namespace Microsoft.DotNet.Cli
|
||||
{
|
||||
internal static class ListToolCommandParser
|
||||
{
|
||||
public static Command ListTool()
|
||||
{
|
||||
return Create.Command(
|
||||
"tool",
|
||||
LocalizableStrings.CommandDescription,
|
||||
Create.Option(
|
||||
"-g|--global",
|
||||
LocalizableStrings.GlobalOptionDescription,
|
||||
Accept.NoArguments()),
|
||||
CommonOptions.HelpOption());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue