Table of Contents

Class FakeExecInvocation

Namespace
OpenShell.Testing
Assembly
OpenShell.Sdk.Testing.dll

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

Workspace string

The workspace of the sandbox.

Sandbox string

The sandbox name.

Command IReadOnlyList<string>

The command and arguments.

Options ExecOptions

The exec options the caller passed.

Properties

Command

The command and arguments.

public IReadOnlyList<string> Command { get; init; }

Property Value

IReadOnlyList<string>

CommandLine

The command joined with single spaces, convenient for matching.

public string CommandLine { get; }

Property Value

string

Options

The exec options the caller passed.

public ExecOptions Options { get; init; }

Property Value

ExecOptions

Sandbox

The sandbox name.

public string Sandbox { get; init; }

Property Value

string

Workspace

The workspace of the sandbox.

public string Workspace { get; init; }

Property Value

string