Class FakeExecInvocation
A command run request presented to the handlers registered with OnExec(Func<FakeExecInvocation, FakeExecScript?>).
public sealed record FakeExecInvocation : IEquatable<FakeExecInvocation>
- Inheritance
-
FakeExecInvocation
- Implements
- Inherited Members
Constructors
FakeExecInvocation(string, string, IReadOnlyList<string>, ExecOptions)
A command run request presented to the handlers registered with OnExec(Func<FakeExecInvocation, FakeExecScript?>).
public FakeExecInvocation(string Workspace, string Sandbox, IReadOnlyList<string> Command, ExecOptions Options)
Parameters
WorkspacestringThe workspace of the sandbox.
SandboxstringThe sandbox name.
CommandIReadOnlyList<string>The command and arguments.
OptionsExecOptionsThe exec options the caller passed.
Properties
Command
The command and arguments.
public IReadOnlyList<string> Command { get; init; }
Property Value
CommandLine
The command joined with single spaces, convenient for matching.
public string CommandLine { get; }
Property Value
Options
The exec options the caller passed.
public ExecOptions Options { get; init; }
Property Value
Sandbox
The sandbox name.
public string Sandbox { get; init; }
Property Value
Workspace
The workspace of the sandbox.
public string Workspace { get; init; }