Class ExecResult
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
The buffered result of a command.
public sealed record ExecResult : IEquatable<ExecResult>
- Inheritance
-
ExecResult
- Implements
- Inherited Members
Constructors
ExecResult(int, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)
The buffered result of a command.
public ExecResult(int ExitCode, ReadOnlyMemory<byte> Stdout, ReadOnlyMemory<byte> Stderr)
Parameters
ExitCodeintThe exit code of the command.
StdoutReadOnlyMemory<byte>Everything the command wrote to standard output.
StderrReadOnlyMemory<byte>Everything the command wrote to standard error.
Properties
ExitCode
The exit code of the command.
public int ExitCode { get; init; }
Property Value
Stderr
Everything the command wrote to standard error.
public ReadOnlyMemory<byte> Stderr { get; init; }
Property Value
StderrText
Standard error decoded as UTF-8.
public string StderrText { get; }
Property Value
Stdout
Everything the command wrote to standard output.
public ReadOnlyMemory<byte> Stdout { get; init; }
Property Value
StdoutText
Standard output decoded as UTF-8.
public string StdoutText { get; }
Property Value
Succeeded
True when the command exited with code 0.
public bool Succeeded { get; }