dotnet-installer/src/Microsoft.DotNet.Cli/Program.cs

27 lines
629 B
C#
Raw Normal View History

2015-10-03 18:34:08 +00:00
using System;
using System.Linq;
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)
{
if (args.Length < 1)
{
// Handle missing args
Console.Error.WriteLine("TODO: Help");
return 1;
}
return Command.Create("dotnet-" + args[0], args.Skip(1))
.ForwardStdErr(Console.Error)
.ForwardStdOut(Console.Out)
.RunAsync()
.Result
.ExitCode;
}
2015-10-03 18:34:08 +00:00
}
}