ParseCommand
This commit is contained in:
parent
4284c4e363
commit
998ac9c3eb
2 changed files with 24 additions and 0 deletions
|
@ -54,6 +54,7 @@ namespace Microsoft.DotNet.Cli
|
||||||
["test"] = TestCommand.Run,
|
["test"] = TestCommand.Run,
|
||||||
["vstest"] = VSTestCommand.Run,
|
["vstest"] = VSTestCommand.Run,
|
||||||
["complete"] = CompleteCommand.Run,
|
["complete"] = CompleteCommand.Run,
|
||||||
|
["parse"] = ParseCommand.Run,
|
||||||
};
|
};
|
||||||
|
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
|
|
23
src/dotnet/commands/dotnet-complete/ParseCommand.cs
Normal file
23
src/dotnet/commands/dotnet-complete/ParseCommand.cs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using Microsoft.DotNet.Cli.CommandLine;
|
||||||
|
using Microsoft.DotNet.Cli.Utils;
|
||||||
|
|
||||||
|
namespace Microsoft.DotNet.Cli
|
||||||
|
{
|
||||||
|
public class ParseCommand
|
||||||
|
{
|
||||||
|
public static int Run(string[] args)
|
||||||
|
{
|
||||||
|
DebugHelper.HandleDebugSwitch(ref args);
|
||||||
|
|
||||||
|
var resultOfParsingArg =
|
||||||
|
Parser.Instance.Parse(
|
||||||
|
args.Single());
|
||||||
|
|
||||||
|
Console.WriteLine(resultOfParsingArg.Diagram());
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue