diff --git a/src/dotnet/Program.cs b/src/dotnet/Program.cs index b3e912daf..57210c2e2 100644 --- a/src/dotnet/Program.cs +++ b/src/dotnet/Program.cs @@ -54,6 +54,7 @@ namespace Microsoft.DotNet.Cli ["test"] = TestCommand.Run, ["vstest"] = VSTestCommand.Run, ["complete"] = CompleteCommand.Run, + ["parse"] = ParseCommand.Run, }; public static int Main(string[] args) diff --git a/src/dotnet/commands/dotnet-complete/ParseCommand.cs b/src/dotnet/commands/dotnet-complete/ParseCommand.cs new file mode 100644 index 000000000..c5fc76d6c --- /dev/null +++ b/src/dotnet/commands/dotnet-complete/ParseCommand.cs @@ -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; + } + } +} \ No newline at end of file