ReplStartupContext
A snapshot of startup input and global values; no command route is required.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Startup/ReplStartupContext.cs
Signature
Section titled “Signature”public sealed class ReplStartupContextInheritance
Section titled “Inheritance”Methods
Section titled “Methods”GetOptions<T>()
Section titled “GetOptions<T>()”Creates the declared options type from this snapshot.
public T GetOptions<T>() where T : classType Parameters
Section titled “Type Parameters”T: A registered global options type.
Returns
Section titled “Returns”T - A fresh options object.
Properties
Section titled “Properties”Arguments
Section titled “Arguments”Gets the current effective arguments.
public IReadOnlyList<string> Arguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
GlobalOptions
Section titled “GlobalOptions”Gets this snapshot’s global values.
public IGlobalOptionsAccessor GlobalOptions { get; }Returns
Section titled “Returns”OriginalArguments
Section titled “OriginalArguments”Gets arguments before preparation.
public IReadOnlyList<string> OriginalArguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Purpose
Section titled “Purpose”Gets the currently recognizable invocation purpose.
public InputPurpose Purpose { get; }Returns
Section titled “Returns”RemainingArguments
Section titled “RemainingArguments”Gets arguments remaining after global option parsing.
public IReadOnlyList<string> RemainingArguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Validation
Section titled “Validation”Gets preparation diagnostics.
public InputValidationResult Validation { get; }