CommandAnnotationsBuilder
Fluent builder for CommandAnnotations. Use as an escape hatch via WithAnnotations(Action<CommandAnnotationsBuilder>) when multiple flags need to be set in a single expression.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/CommandAnnotationsBuilder.cs
Signature
Section titled “Signature”public sealed class CommandAnnotationsBuilderInheritance
Section titled “Inheritance”Methods
Section titled “Methods”AutomationHidden(bool)
Section titled “AutomationHidden(bool)”Hides the command from programmatic/automation surfaces only.
public CommandAnnotationsBuilder AutomationHidden(bool value = true)Parameters
Section titled “Parameters”value(bool)
Returns
Section titled “Returns”Destructive(bool)
Section titled “Destructive(bool)”Marks the command as destructive (deletes, modifies state).
public CommandAnnotationsBuilder Destructive(bool value = true)Parameters
Section titled “Parameters”value(bool)
Returns
Section titled “Returns”Idempotent(bool)
Section titled “Idempotent(bool)”Marks the command as safely retriable.
public CommandAnnotationsBuilder Idempotent(bool value = true)Parameters
Section titled “Parameters”value(bool)
Returns
Section titled “Returns”LongRunning(bool)
Section titled “LongRunning(bool)”Marks the command as long-running (enables task-based execution).
public CommandAnnotationsBuilder LongRunning(bool value = true)Parameters
Section titled “Parameters”value(bool)
Returns
Section titled “Returns”OpenWorld(bool)
Section titled “OpenWorld(bool)”Marks the command as interacting with external systems.
public CommandAnnotationsBuilder OpenWorld(bool value = true)Parameters
Section titled “Parameters”value(bool)
Returns
Section titled “Returns”ReadOnly(bool)
Section titled “ReadOnly(bool)”Marks the command as read-only (no side effects).
public CommandAnnotationsBuilder ReadOnly(bool value = true)Parameters
Section titled “Parameters”value(bool)