Skip to content

ICoreReplApp

Core app contract for mapping commands, contexts, and modules without DI dependencies.

public interface ICoreReplApp : IReplMap
  • Context<ICoreReplApp>(ICoreReplApp, string, Action<ICoreReplApp>, Delegate)

Context(string, Action<ICoreReplApp>, Delegate?)

Section titled “Context(string, Action<ICoreReplApp>, Delegate?)”

Creates a context segment and configures child routes within it.

IContextBuilder Context(string segment, Action<ICoreReplApp> configure, Delegate? validation = null)
  • segment (string): Context segment template.
  • configure (Action<ICoreReplApp>): Mapping callback for nested routes.
  • validation (Delegate): Optional validator for scope entry.

IContextBuilder - A context builder for context-level metadata configuration.

Builds a structured documentation model of the command graph.

ReplDocumentationModel CreateDocumentationModel(string? targetPath = null)
  • targetPath (string): Optional target path to scope the model. When null, returns the full model. When specified and not found, returns an empty model.

ReplDocumentationModel - A structured documentation model.

Invalidates the active routing cache so module presence predicates are re-evaluated on next resolution.

void InvalidateRouting()

Maps a reusable module instance into the current route scope.

ICoreReplApp MapModule(IReplModule module)

ICoreReplApp - The same app contract for fluent chaining.

MapModule(IReplModule, Func<ModulePresenceContext, bool>)

Section titled “MapModule(IReplModule, Func<ModulePresenceContext, bool>)”

Maps a reusable module instance into the current route scope with a runtime presence predicate.

ICoreReplApp MapModule(IReplModule module, Func<ModulePresenceContext, bool> isPresent)
  • module (IReplModule): Module instance.
  • isPresent (Func<ModulePresenceContext, bool>): Runtime presence predicate.

ICoreReplApp - The same app contract for fluent chaining.

Registers a banner delegate rendered when the scope is entered.

ICoreReplApp WithBanner(Delegate bannerProvider)
  • bannerProvider (Delegate): Banner delegate with injectable parameters.

ICoreReplApp - The same app contract for fluent chaining.

Registers a static banner string rendered when the scope is entered.

ICoreReplApp WithBanner(string text)

ICoreReplApp - The same app contract for fluent chaining.