Skip to content

ReplAppProfileExtensions

Provides default profile extension methods for common hosting scenarios.

public static class ReplAppProfileExtensions

Applies process-owning defaults suited for CLI one-shot execution. This profile takes process signal ownership for standalone runs — see Automatic for exactly what that means. Set ProcessSignalHandling to None to keep that ownership with the caller for one run.

public static ReplApp UseCliProfile(this ReplApp app)

ReplApp - The same app instance.

Applies interactive defaults for console usage. This profile also takes process signal ownership for standalone runs — see Automatic for exactly what that means, including why an interactive session’s own Ctrl+C behavior is unchanged. Set ProcessSignalHandling to None to keep that ownership with the caller for one run.

public static ReplApp UseDefaultInteractive(this ReplApp app)

ReplApp - The same app instance.

Applies defaults suited for embedded host scenarios, leaving process signal ownership with the caller.

public static ReplApp UseEmbeddedConsoleProfile(this ReplApp app)

ReplApp - The same app instance.