CommandAppResult Class

Represents the result of a completed CommandApp run.
public sealed class CommandAppResult

Properties

CommandContext Context
Gets the command context.
int ExitCode
Gets the exit code.
string Output
Gets the console output.
CommandSettings Settings
Gets the command settings.

Extension Methods

T And<CommandAppResult>(Action<CommandAppResult>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.