AmbientCommandOptions
Ambient command options.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/AmbientCommandOptions.cs
Signature
Section titled “Signature”public sealed class AmbientCommandOptionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”MapAmbient(string, Delegate, string?)
Section titled “MapAmbient(string, Delegate, string?)”Registers a custom ambient command available in all interactive scopes.
public AmbientCommandOptions MapAmbient(string name, Delegate handler, string? description = null)Parameters
Section titled “Parameters”name(string): Command name (matched case-insensitively).handler(Delegate): Handler delegate with injectable parameters.description(string): Optional description shown in help output.
Returns
Section titled “Returns”AmbientCommandOptions - This instance for fluent chaining.
Properties
Section titled “Properties”ExitCommandEnabled
Section titled “ExitCommandEnabled”Gets or sets a value indicating whether the exit ambient command is enabled.
public bool ExitCommandEnabled { get; set; }Returns
Section titled “Returns”ShowCompleteInHelp
Section titled “ShowCompleteInHelp”Gets or sets a value indicating whether the complete ambient command
is shown in interactive help output.
public bool ShowCompleteInHelp { get; set; }Returns
Section titled “Returns”ShowHistoryInHelp
Section titled “ShowHistoryInHelp”Gets or sets a value indicating whether the history ambient command
is shown in interactive help output.
public bool ShowHistoryInHelp { get; set; }