30 references to SetAction
Aspire.Cli.Tests (4)
Commands\CompletionsCommandTests.cs (4)
147
run.
SetAction
(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command."));
169
command.
SetAction
(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command."));
171
run.
SetAction
(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command."));
227
command.
SetAction
(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command."));
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
45
rootCommand.
SetAction
((ParseResult parseResult) =>
ConfigurationSchemaGenerator (1)
RootGenerateCommand.cs (1)
38
formatCommand.
SetAction
(static parseResult =>
crossgen2 (1)
Crossgen2RootCommand.cs (1)
247
this.
SetAction
(result =>
dotnet-aot (15)
parent\dotnet\Commands\Run\AotRunCommand.cs (1)
30
=> command.
SetAction
(parseResult => Execute(parseResult, Launch));
parent\dotnet\Commands\Sdk\SdkCommandParser.cs (2)
14
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
15
command.CheckCommand.
SetAction
(SdkCheckCommand.Run);
parent\dotnet\Commands\Solution\SolutionCommandParser.cs (5)
19
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
22
command.AddCommand.
SetAction
((Func<ParseResult, int>)(_ => throw new CommandNotAvailableInAotException()));
26
command.ListCommand.
SetAction
(parseResult => new SolutionListCommand(parseResult).Execute());
27
command.MigrateCommand.
SetAction
(parseResult => new SolutionMigrateCommand(parseResult).Execute());
28
command.RemoveCommand.
SetAction
(parseResult => new SolutionRemoveCommand(parseResult).Execute());
parent\dotnet\Commands\Test\AotTestCommand.cs (1)
23
mtp.
SetAction
(Execute);
parent\dotnet\Commands\Tool\ToolCommandParser.cs (4)
30
command.ListCommand.
SetAction
(parseResult =>
34
command.UninstallCommand.
SetAction
(parseResult =>
38
command.RunCommand.
SetAction
(parseResult => new ToolRunCommand(parseResult).Execute());
39
command.SearchCommand.
SetAction
(parseResult => new ToolSearchCommand(parseResult).Execute());
parent\dotnet\Parser.cs (2)
90
rootCommand.
SetAction
(parseResult =>
247
command.
SetAction
(InvokeAotFallback);
ilasm (1)
IlasmRootCommand.cs (1)
159
this.
SetAction
(result =>
ilc (1)
ILCompilerRootCommand.cs (1)
281
this.
SetAction
(result =>
Microsoft.DotNet.MacOsPkg.Cli (3)
Program.cs (3)
47
unpackCommand.
SetAction
(result =>
60
packCommand.
SetAction
(result =>
72
verifyCommand.
SetAction
(result =>
Microsoft.DotNet.VersionTools.Cli (1)
Program.cs (1)
44
trimAssetVersionCommand.
SetAction
(result =>
SelectTests (1)
Program.cs (1)
98
rootCommand.
SetAction
(parseResult =>
TypeScriptApiCompat (1)
Program.cs (1)
54
rootCommand.
SetAction
(parseResult =>