2 overrides of Action
System.CommandLine (2)
Help\HelpOption.cs (1)
41
public override CommandLineAction?
Action
VersionOption.cs (1)
43
public override CommandLineAction?
Action
11 writes to Action
dotnet (6)
Commands\Workload\WorkloadCommandParser.cs (2)
29
def.InfoOption.
Action
= new ShowWorkloadsInfoAction();
30
def.VersionOption.
Action
= new ShowWorkloadsVersionOption();
Parser.cs (4)
192
rootCommand.DiagOption.
Action
= new HandleDiagnosticAction(rootCommand.DiagOption);
193
rootCommand.VersionOption.
Action
= new PrintVersionAction(rootCommand.VersionOption);
194
rootCommand.InfoOption.
Action
= new PrintInfoAction(rootCommand.InfoOption);
195
rootCommand.CliSchemaOption.
Action
= new PrintCliSchemaAction(rootCommand.CliSchemaOption);
dotnet-aot (5)
src\sdk\src\Cli\dotnet\Parser.cs (5)
227
rootCommand.VersionOption.
Action
= new PrintVersionAction(rootCommand.VersionOption);
228
rootCommand.InfoOption.
Action
= new PrintInfoAction(rootCommand.InfoOption);
229
rootCommand.CliSchemaOption.
Action
= new PrintCliSchemaAction(rootCommand.CliSchemaOption);
233
rootCommand.ListSdksOption.
Action
= new AotFallbackOptionAction(rootCommand.ListSdksOption);
234
rootCommand.ListRuntimesOption.
Action
= new AotFallbackOptionAction(rootCommand.ListRuntimesOption);
6 references to Action
System.CommandLine (6)
Parsing\ParseOperation.cs (6)
217
if (option.
Action
is not null)
222
if (option.
Action
.Terminating)
224
_primaryAction = option.
Action
;
228
AddPreAction(option.
Action
);
386
if (kvp is { Key: Option {
Action
: { Terminating: false } action }, Value: OptionResult { Implicit: true } } &&
450
if (symbol is Option {
Action
: { } optionAction } option)