Table of Contents

Class ExecOptions

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Options for running a command in a sandbox.

public sealed record ExecOptions : IEquatable<ExecOptions>
Inheritance
ExecOptions
Implements
Inherited Members

Properties

Environment

Extra environment variables.

public IReadOnlyDictionary<string, string>? Environment { get; init; }

Property Value

IReadOnlyDictionary<string, string>

NoLoginShell

Skip the login shell wrapper.

public bool NoLoginShell { get; init; }

Property Value

bool

RequestId

Idempotency key.

public string? RequestId { get; init; }

Property Value

string

Stdin

Bytes written to the command's standard input.

public ReadOnlyMemory<byte> Stdin { get; init; }

Property Value

ReadOnlyMemory<byte>

Timeout

Execution timeout enforced by the gateway.

public TimeSpan? Timeout { get; init; }

Property Value

TimeSpan?

Tty

Allocate a TTY.

public bool Tty { get; init; }

Property Value

bool

WorkingDirectory

Working directory.

public string? WorkingDirectory { get; init; }

Property Value

string