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