Skip to content

CommandConfig

Namespace: E2E

public sealed class CommandConfig

The command a target’s app.command starts the app with (upstream’s CommandConfig). It is a program and its arguments, never a shell line: the executable is started directly and each argument is passed as it is.

Inheritance: object

View source

public IReadOnlyList<string>? Args { get; init; }

Its arguments, passed one by one. {port} is replaced by the port the app is served on.

Value: IReadOnlyList<string>

View source

public string? Cwd { get; init; }

The working directory, relative to the config’s directory. Unset, that directory.

Value: string

View source

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

Variables the process gets, on top of InheritEnv. {port} in a value is replaced.

Value: IReadOnlyDictionary<string, string>

View source

public required string Executable { get; init; }

The program to start. Required.

Value: string

View source

public IReadOnlyList<string>? InheritEnv { get; init; }

Variable names, or prefixes ending in *, copied from the environment of the run. The process gets only these, Env, and PATH, HOME, TMPDIR, TMP, TEMP, SystemRoot, and COMSPEC.

Value: IReadOnlyList<string>

View source

public string? Log { get; init; }

A file inside the config’s directory that takes the output of the process, appended to across runs.

Value: string

View source

public bool? ReuseExisting { get; init; }

Attach to an app that already answers at the readiness URL instead of failing. Ignored in CI.

Value: bool?

View source

public TimeSpan? ShutdownTimeout { get; init; }

How long the app has to stop before it is killed. 10 seconds when unset.

Value: TimeSpan?

View source

public TimeSpan? StartupTimeout { get; init; }

How long the app has to become ready. 60 seconds when unset.

Value: TimeSpan?

View source