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