Skip to content

ReplStartupContext

A snapshot of startup input and global values; no command route is required.

public sealed class ReplStartupContext

Creates the declared options type from this snapshot.

public T GetOptions<T>() where T : class
  • T: A registered global options type.

T - A fresh options object.

Gets the current effective arguments.

public IReadOnlyList<string> Arguments { get; }

IReadOnlyList<string>

Gets this snapshot’s global values.

public IGlobalOptionsAccessor GlobalOptions { get; }

IGlobalOptionsAccessor

Gets arguments before preparation.

public IReadOnlyList<string> OriginalArguments { get; }

IReadOnlyList<string>

Gets the currently recognizable invocation purpose.

public InputPurpose Purpose { get; }

InputPurpose

Gets arguments remaining after global option parsing.

public IReadOnlyList<string> RemainingArguments { get; }

IReadOnlyList<string>

Gets preparation diagnostics.

public InputValidationResult Validation { get; }

InputValidationResult