Skip to content

AmbientCommandOptions

Ambient command options.

public sealed class AmbientCommandOptions

Registers a custom ambient command available in all interactive scopes.

public AmbientCommandOptions MapAmbient(string name, Delegate handler, string? description = null)
  • name (string): Command name (matched case-insensitively).
  • handler (Delegate): Handler delegate with injectable parameters.
  • description (string): Optional description shown in help output.

AmbientCommandOptions - This instance for fluent chaining.

Gets or sets a value indicating whether the exit ambient command is enabled.

public bool ExitCommandEnabled { get; set; }

bool

Gets or sets a value indicating whether the complete ambient command is shown in interactive help output.

public bool ShowCompleteInHelp { get; set; }

bool

Gets or sets a value indicating whether the history ambient command is shown in interactive help output.

public bool ShowHistoryInHelp { get; set; }

bool