81 references to SetAction
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)
237
this.
SetAction
(result =>
dotnet (72)
Commands\Build\BuildCommandParser.cs (1)
12
command.
SetAction
(BuildCommand.Run);
Commands\BuildServer\BuildServerCommandParser.cs (2)
14
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
15
command.ShutdownCommand.
SetAction
(parseResult => new BuildServerShutdownCommand(parseResult).Execute());
Commands\Clean\CleanCommandParser.cs (2)
14
command.
SetAction
(CleanCommand.Run);
17
command.FileBasedAppsCommand.
SetAction
(parseResult => new CleanFileBasedAppArtifactsCommand(parseResult).Execute());
Commands\Dnx\DnxCommandParser.cs (1)
13
command.
SetAction
(parseResult => new ToolExecuteCommand(parseResult).Execute());
Commands\Format\FormatCommandParser.cs (1)
12
command.
SetAction
(parseResult => FormatCommand.Run(parseResult.GetValue(command.Arguments) ?? []));
Commands\Fsi\FsiCommandParser.cs (1)
12
command.
SetAction
(parseResult => FsiCommand.Run(parseResult.GetValue(command.Arguments) ?? []));
Commands\Help\HelpCommandParser.cs (1)
12
command.
SetAction
(HelpCommand.Run);
Commands\Hidden\Add\AddCommandParser.cs (2)
15
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
18
command.ReferenceCommand.
SetAction
(parseResult => new ReferenceAddCommand(parseResult).Execute());
Commands\Hidden\Complete\CompleteCommandParser.cs (1)
12
command.
SetAction
(CompleteCommand.Run);
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommandParser.cs (1)
12
command.
SetAction
(InternalReportInstallSuccessCommand.Run);
Commands\Hidden\List\ListCommandParser.cs (3)
15
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
17
command.PackageCommand.
SetAction
(parseResult => new PackageListCommand(parseResult).Execute());
18
command.ReferenceCommand.
SetAction
(parseResult => new ReferenceListCommand(parseResult).Execute());
Commands\Hidden\Parse\ParseCommandParser.cs (1)
10
command.
SetAction
(ParseCommand.Run);
Commands\Hidden\Remove\RemoveCommandParser.cs (3)
15
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
17
command.PackageCommand.
SetAction
(parseResult => new PackageRemoveCommand(parseResult).Execute());
18
command.ReferenceCommand.
SetAction
(parseResult => new ReferenceRemoveCommand(parseResult).Execute());
Commands\MSBuild\MSBuildCommandParser.cs (1)
12
command.
SetAction
(MSBuildCommand.Run);
Commands\NuGet\NuGetCommandParser.cs (1)
12
command.
SetAction
(NuGetCommand.Run);
Commands\Pack\PackCommandParser.cs (1)
13
command.
SetAction
(PackCommand.Run);
Commands\Package\PackageCommandParser.cs (5)
22
command.
SetAction
((parseResult) => parseResult.HandleMissingCommand());
24
command.RemoveCommand.
SetAction
(parseResult => new PackageRemoveCommand(parseResult).Execute());
25
command.ListCommand.
SetAction
(parseResult => new PackageListCommand(parseResult).Execute());
28
command.SearchCommand.
SetAction
(parseResult =>
68
def.
SetAction
(parseResult => new PackageAddCommand(parseResult).Execute());
Commands\Project\ProjectCommandParser.cs (2)
13
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
14
command.ConvertCommand.
SetAction
(parseResult => new ProjectConvertCommand(parseResult).Execute());
Commands\Publish\PublishCommandParser.cs (1)
13
command.
SetAction
(PublishCommand.Run);
Commands\Reference\ReferenceCommandParser.cs (4)
18
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
20
command.AddCommand.
SetAction
(parseResult => new ReferenceAddCommand(parseResult).Execute());
23
command.ListCommand.
SetAction
(parseResult => new ReferenceListCommand(parseResult).Execute());
29
command.RemoveCommand.
SetAction
(parseResult => new ReferenceRemoveCommand(parseResult).Execute());
Commands\Restore\RestoreCommandParser.cs (1)
14
command.
SetAction
(RestoreCommand.Run);
Commands\Run\Api\RunApiCommandParser.cs (1)
12
command.
SetAction
(parseResult => new RunApiCommand(parseResult).Execute());
Commands\Run\RunCommandParser.cs (1)
13
command.
SetAction
(RunCommand.Run);
Commands\Sdk\SdkCommandParser.cs (2)
14
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
15
command.CheckCommand.
SetAction
(SdkCheckCommand.Run);
Commands\Solution\SolutionCommandParser.cs (5)
17
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
19
command.AddCommand.
SetAction
(parseResult => new SolutionAddCommand(parseResult).Execute());
20
command.ListCommand.
SetAction
(parseResult => new SolutionListCommand(parseResult).Execute());
21
command.MigrateCommand.
SetAction
(parseResult => new SolutionMigrateCommand(parseResult).Execute());
22
command.RemoveCommand.
SetAction
(parseResult => new SolutionRemoveCommand(parseResult).Execute());
Commands\Test\TestCommandParser.cs (2)
19
vs.
SetAction
(TestCommand.Run);
24
mtp.
SetAction
(parseResult => impl.Run(parseResult, isHelp: false));
Commands\Tool\Store\StoreCommandParser.cs (1)
14
command.
SetAction
(StoreCommand.Run);
Commands\Tool\ToolCommandParser.cs (9)
21
command.
SetAction
(parseResult => parseResult.HandleMissingCommand());
23
command.InstallCommand.
SetAction
(parseResult => new ToolInstallCommand(parseResult).Execute());
24
command.UninstallCommand.
SetAction
(parseResult => new ToolUninstallCommand(parseResult).Execute());
25
command.UpdateCommand.
SetAction
(parseResult => new ToolUpdateCommand(parseResult).Execute());
26
command.ListCommand.
SetAction
(parseResult => new ToolListCommand(parseResult).Execute());
27
command.RunCommand.
SetAction
(parseResult => new ToolRunCommand(parseResult).Execute());
28
command.SearchCommand.
SetAction
(parseResult => new ToolSearchCommand(parseResult).Execute());
29
command.RestoreCommand.
SetAction
(parseResult => new ToolRestoreCommand(parseResult).Execute());
30
command.ExecuteCommand.
SetAction
(parseResult => new ToolExecuteCommand(parseResult).Execute());
Commands\VSTest\VSTestCommandParser.cs (1)
12
command.
SetAction
(VSTestCommand.Run);
Commands\Workload\WorkloadCommandParser.cs (13)
28
def.
SetAction
(parseResult => parseResult.HandleMissingCommand());
32
def.InstallCommand.
SetAction
(parseResult => new WorkloadInstallCommand(parseResult).Execute());
33
def.UpdateCommand.
SetAction
(parseResult => new WorkloadUpdateCommand(parseResult).Execute());
34
def.ListCommand.
SetAction
(parseResult => new WorkloadListCommand(parseResult).Execute());
35
def.SearchCommand.
SetAction
(parseResult => new WorkloadSearchCommand(parseResult).Execute());
36
def.SearchCommand.VersionCommand.
SetAction
(parseResult => new WorkloadSearchVersionsCommand(parseResult).Execute());
37
def.UninstallCommand.
SetAction
(parseResult => new WorkloadUninstallCommand(parseResult).Execute());
38
def.RepairCommand.
SetAction
(parseResult => new WorkloadRepairCommand(parseResult).Execute());
39
def.RestoreCommand.
SetAction
(parseResult => new WorkloadRestoreCommand(parseResult).Execute());
40
def.CleanCommand.
SetAction
(parseResult => new WorkloadCleanCommand(parseResult).Execute());
41
def.ElevateCommand.
SetAction
(parseResult => new WorkloadElevateCommand(parseResult).Execute());
42
def.ConfigCommand.
SetAction
(parseResult => new WorkloadConfigCommand(parseResult).Execute());
43
def.HistoryCommand.
SetAction
(parseResult => new WorkloadHistoryCommand(parseResult).Execute());
Parser.cs (1)
173
rootCommand.
SetAction
(parseResult =>
ilasm (1)
IlasmRootCommand.cs (1)
160
this.
SetAction
(result =>
ilc (1)
ILCompilerRootCommand.cs (1)
280
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 =>