2 types derived from CommandLineAction
System.CommandLine (2)
Invocation\AsynchronousCommandLineAction.cs (1)
10public abstract class AsynchronousCommandLineAction : CommandLineAction
Invocation\SynchronousCommandLineAction.cs (1)
9public abstract class SynchronousCommandLineAction : CommandLineAction
30 references to CommandLineAction
System.CommandLine (30)
Command.cs (2)
98/// Gets or sets the <see cref="CommandLineAction"/> for the Command. The handler represents the action 105public CommandLineAction? Action { get; set; }
Completions\SuggestDirective.cs (2)
11private CommandLineAction? _action; 19public override CommandLineAction? Action
Directive.cs (2)
33/// Gets or sets the <see cref="CommandLineAction"/> for the Directive. The handler represents the action 36public virtual CommandLineAction? Action { get; set; }
EnvironmentVariablesDirective.cs (2)
14private CommandLineAction? _action; 22public override CommandLineAction? Action
Help\HelpOption.cs (2)
13private CommandLineAction? _action; 41public override CommandLineAction? Action
Invocation\CommandLineAction.cs (1)
21/// Indicates that the action clears any parse errors associated with symbols other than one that owns the <see cref="CommandLineAction"/>.
Invocation\InvocationPipeline.cs (1)
25var action = parseResult.PreActions[i];
InvocationConfiguration.cs (1)
19/// that can be passed to a <see cref="CommandLineAction"/> during invocation.
Option.cs (2)
128/// Gets or sets the <see cref="CommandLineAction"/> for the Option. The handler represents the action 131public virtual CommandLineAction? Action { get; set; }
ParseDiagramDirective.cs (2)
12private CommandLineAction? _action; 22public override CommandLineAction? Action
ParseResult.cs (8)
22private readonly CommandLineAction? _action; 23private readonly List<CommandLineAction>? _preActions; 34CommandLineAction? action = null, 35List<CommandLineAction>? preActions = null) 312var action = PreActions[i]; 332/// Gets the <see cref="CommandLineAction"/> for parsed result. The handler represents the action 335public CommandLineAction? Action => _action ?? CommandResult.Command.Action; 337internal IReadOnlyList<CommandLineAction>? PreActions => _preActions;
Parsing\ParseOperation.cs (3)
21private CommandLineAction? _primaryAction; 22private List<CommandLineAction>? _preActions; 372private void AddPreAction(CommandLineAction action)
VersionOption.cs (2)
16private CommandLineAction? _action; 43public override CommandLineAction? Action