namespace Spectre.Console.Testing;
///
/// Represents the result of a completed run.
///
public sealed class CommandAppResult
{
///
/// Gets the exit code.
///
public int ExitCode { get; }
///
/// Gets the console output.
///
public string Output { get; }
///
/// Gets the command context.
///
public CommandContext? Context { get; }
///
/// Gets the command settings.
///
public CommandSettings? Settings { get; }
internal CommandAppResult(int exitCode, string output, CommandContext? context, CommandSettings? settings)
{
ExitCode = exitCode;
Output = output ?? string.Empty;
Context = context;
Settings = settings;
}
}