Skip to content

PreparedReplStartup

Prepared input and its configuration, reusable without replaying preparation hooks.

public sealed class PreparedReplStartup

Renders a terminal preparation result without constructing application services.

public ValueTask<int> CompleteAsync(CancellationToken cancellationToken = default)

ValueTask<int> - The process exit code under the preparation configuration.

Creates a registered options object using prepared values.

public T GetOptions<T>() where T : class
  • T: Options type.

T - A fresh options object.

Gets effective arguments.

public IReadOnlyList<string> Arguments { get; }

IReadOnlyList<string>

Gets whether composition and normal startup may continue.

public bool CanContinue { get; }

bool

Gets the preparation snapshot.

public ReplStartupContext Context { get; }

ReplStartupContext

Gets a preparation callback failure, if one occurred.

public Exception? Exception { get; }

Exception

Gets original arguments.

public IReadOnlyList<string> OriginalArguments { get; }

IReadOnlyList<string>

Gets arguments not consumed by global parsing.

public IReadOnlyList<string> RemainingArguments { get; }

IReadOnlyList<string>

Gets preparation diagnostics without rendering them.

public InputValidationResult Validation { get; }

InputValidationResult