2015-10-03 18:34:08 +00:00
|
|
|
|
using System;
|
2015-10-06 09:19:27 +00:00
|
|
|
|
using System.Linq;
|
2015-10-06 17:46:43 +00:00
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
2015-10-03 18:34:08 +00:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static int Main(string[] args)
|
|
|
|
|
{
|
2015-10-06 17:46:43 +00:00
|
|
|
|
if (args.Length < 1)
|
2015-10-06 10:10:26 +00:00
|
|
|
|
{
|
2015-10-06 17:46:43 +00:00
|
|
|
|
// Handle missing args
|
|
|
|
|
Console.Error.WriteLine("TODO: Help");
|
|
|
|
|
return 1;
|
2015-10-06 10:10:26 +00:00
|
|
|
|
}
|
2015-10-06 09:19:27 +00:00
|
|
|
|
|
2015-10-06 17:46:43 +00:00
|
|
|
|
return Command.Create("dotnet-" + args[0], args.Skip(1))
|
|
|
|
|
.ForwardStdErr(Console.Error)
|
|
|
|
|
.ForwardStdOut(Console.Out)
|
|
|
|
|
.RunAsync()
|
|
|
|
|
.Result
|
|
|
|
|
.ExitCode;
|
2015-10-06 09:19:27 +00:00
|
|
|
|
}
|
2015-10-03 18:34:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|