2015-11-16 19:21:57 +00:00
|
|
|
|
// 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.
|
|
|
|
|
|
2016-01-24 09:04:39 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
2015-10-06 17:46:43 +00:00
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
|
|
|
|
{
|
2015-12-15 18:04:16 +00:00
|
|
|
|
public struct CommandResult
|
2015-10-06 17:46:43 +00:00
|
|
|
|
{
|
2015-11-18 02:02:08 +00:00
|
|
|
|
public static readonly CommandResult Empty = new CommandResult();
|
|
|
|
|
|
2016-01-24 09:04:39 +00:00
|
|
|
|
public ProcessStartInfo StartInfo { get; }
|
2015-10-06 17:46:43 +00:00
|
|
|
|
public int ExitCode { get; }
|
|
|
|
|
public string StdOut { get; }
|
|
|
|
|
public string StdErr { get; }
|
|
|
|
|
|
2016-01-24 09:04:39 +00:00
|
|
|
|
public CommandResult(ProcessStartInfo startInfo, int exitCode, string stdOut, string stdErr)
|
2015-10-06 17:46:43 +00:00
|
|
|
|
{
|
2016-01-24 09:04:39 +00:00
|
|
|
|
StartInfo = startInfo;
|
2015-10-06 17:46:43 +00:00
|
|
|
|
ExitCode = exitCode;
|
|
|
|
|
StdOut = stdOut;
|
|
|
|
|
StdErr = stdErr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|