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
NoLoginShell
Skip the login shell wrapper.
public bool NoLoginShell { get; init; }
Property Value
RequestId
Idempotency key.
public string? RequestId { get; init; }
Property Value
Stdin
Bytes written to the command's standard input.
public ReadOnlyMemory<byte> Stdin { get; init; }
Property Value
Timeout
Execution timeout enforced by the gateway.
public TimeSpan? Timeout { get; init; }
Property Value
Tty
Allocate a TTY.
public bool Tty { get; init; }
Property Value
WorkingDirectory
Working directory.
public string? WorkingDirectory { get; init; }