59 types derived from BaseCommand
aspire (57)
Commands\AddCommand.cs (1)
21
internal sealed class AddCommand :
BaseCommand
Commands\AgentInitCommand.cs (1)
24
internal sealed class AgentInitCommand :
BaseCommand
Commands\AgentMcpCommand.cs (1)
27
internal sealed class AgentMcpCommand :
BaseCommand
Commands\AgentTelemetryCommand.cs (1)
30
internal sealed class AgentTelemetryCommand :
BaseCommand
Commands\ApiGetCommand.cs (1)
16
internal sealed class ApiGetCommand :
BaseCommand
Commands\ApiListCommand.cs (1)
18
internal sealed class ApiListCommand :
BaseCommand
Commands\ApiSearchCommand.cs (1)
18
internal sealed class ApiSearchCommand :
BaseCommand
Commands\BaseConfigSubCommand.cs (1)
8
internal abstract class BaseConfigSubCommand(string name, string description, IConfigurationService configurationService, CommonCommandServices services) :
BaseCommand
(name, description, services)
Commands\CacheCommand.cs (1)
25
internal sealed class ClearCommand :
BaseCommand
Commands\CertificatesCleanCommand.cs (1)
15
internal sealed class CertificatesCleanCommand :
BaseCommand
Commands\CertificatesTrustCommand.cs (1)
16
internal sealed class CertificatesTrustCommand :
BaseCommand
Commands\ConfigCommand.cs (1)
17
internal sealed class ConfigCommand :
BaseCommand
Commands\DashboardRunCommand.cs (1)
22
internal sealed class DashboardRunCommand :
BaseCommand
Commands\DescribeCommand.cs (1)
72
internal sealed class DescribeCommand :
BaseCommand
Commands\DocsGetCommand.cs (1)
17
internal sealed class DocsGetCommand :
BaseCommand
Commands\DocsListCommand.cs (1)
19
internal sealed class DocsListCommand :
BaseCommand
Commands\DocsSearchCommand.cs (1)
19
internal sealed class DocsSearchCommand :
BaseCommand
Commands\DoctorCommand.cs (1)
16
internal sealed class DoctorCommand :
BaseCommand
Commands\ExportCommand.cs (1)
21
internal sealed class ExportCommand :
BaseCommand
Commands\ExtensionInternalCommand.cs (2)
13
internal sealed class ExtensionInternalCommand :
BaseCommand
26
private sealed class GetAppHostCandidatesCommand :
BaseCommand
Commands\InitCommand.cs (1)
32
internal sealed class InitCommand :
BaseCommand
Commands\IntegrationSearchCommand.cs (1)
19
internal abstract class IntegrationDiscoveryCommand :
BaseCommand
Commands\LogsCommand.cs (1)
75
internal sealed class LogsCommand :
BaseCommand
Commands\LsCommand.cs (1)
16
internal sealed class LsCommand :
BaseCommand
Commands\McpCallCommand.cs (1)
16
internal sealed class McpCallCommand :
BaseCommand
Commands\McpInitCommand.cs (1)
18
internal sealed class McpInitCommand :
BaseCommand
Commands\McpStartCommand.cs (1)
13
internal sealed class McpStartCommand :
BaseCommand
Commands\McpToolsCommand.cs (1)
17
internal sealed class McpToolsCommand :
BaseCommand
Commands\NewCommand.cs (1)
22
internal sealed class NewCommand :
BaseCommand
Commands\ParentCommand.cs (1)
11
internal abstract class ParentCommand :
BaseCommand
Commands\PipelineCommandBase.cs (1)
28
internal abstract class PipelineCommandBase :
BaseCommand
Commands\PsCommand.cs (1)
71
internal sealed partial class PsCommand :
BaseCommand
Commands\RenderCommand.cs (1)
26
internal sealed class RenderCommand :
BaseCommand
Commands\ResourceCommand.cs (1)
20
internal sealed class ResourceCommand :
BaseCommand
Commands\RestoreCommand.cs (1)
22
internal sealed class RestoreCommand :
BaseCommand
Commands\RunCommand.cs (1)
59
internal sealed class RunCommand :
BaseCommand
Commands\Sdk\SdkDumpCommand.cs (1)
33
internal sealed class SdkDumpCommand :
BaseCommand
Commands\Sdk\SdkExportCommand.cs (1)
26
internal sealed class SdkExportCommand :
BaseCommand
Commands\Sdk\SdkGenerateCommand.cs (1)
19
internal sealed class SdkGenerateCommand :
BaseCommand
Commands\SecretDeleteCommand.cs (1)
15
internal sealed class SecretDeleteCommand :
BaseCommand
Commands\SecretGetCommand.cs (1)
16
internal sealed class SecretGetCommand :
BaseCommand
Commands\SecretListCommand.cs (1)
18
internal sealed class SecretListCommand :
BaseCommand
Commands\SecretPathCommand.cs (1)
14
internal sealed class SecretPathCommand :
BaseCommand
Commands\SecretSetCommand.cs (1)
14
internal sealed class SecretSetCommand :
BaseCommand
Commands\SetupCommand.cs (1)
13
internal sealed class SetupCommand :
BaseCommand
Commands\StartCommand.cs (1)
15
internal sealed class StartCommand :
BaseCommand
Commands\StopCommand.cs (1)
18
internal sealed class StopCommand :
BaseCommand
Commands\TelemetryLogsCommand.cs (1)
22
internal sealed class TelemetryLogsCommand :
BaseCommand
Commands\TelemetrySpansCommand.cs (1)
22
internal sealed class TelemetrySpansCommand :
BaseCommand
Commands\TelemetryTracesCommand.cs (1)
23
internal sealed class TelemetryTracesCommand :
BaseCommand
Commands\TemplateCommand.cs (1)
9
internal sealed class TemplateCommand :
BaseCommand
Commands\TerminalAttachCommand.cs (1)
33
internal sealed class TerminalAttachCommand :
BaseCommand
Commands\TerminalCommand.cs (1)
12
internal sealed class TerminalCommand :
BaseCommand
Commands\TerminalPsCommand.cs (1)
35
internal sealed class TerminalPsCommand :
BaseCommand
Commands\UpdateCommand.cs (1)
23
internal sealed class UpdateCommand :
BaseCommand
Commands\WaitCommand.cs (1)
12
internal sealed class WaitCommand :
BaseCommand
Aspire.Cli.Tests (2)
Commands\BaseCommandTests.cs (1)
734
:
BaseCommand
("test", "Test command", services)
NuGet\NuGetPackagePrefetcherTests.cs (1)
532
internal sealed class TestCommand :
BaseCommand
29 references to BaseCommand
aspire (17)
Backchannel\AppHostConnectionResolver.cs (1)
307
/// <see cref="Commands.
BaseCommand
"/> can display it alongside the current CLI's log path on failure.
Commands\AppHostLauncher.cs (1)
165
return
BaseCommand
.HandleProjectLocatorException(ex, interactionService, telemetry);
Commands\BaseCommand.cs (2)
46
/// escalate to forceful termination. <see cref="
BaseCommand
"/> reads this and configures the
164
services.LoggerFactory.CreateLogger<
BaseCommand
>().LogWarning("Termination signal forced process exit.");
Commands\CommandResult.cs (1)
33
/// <see cref="
BaseCommand
"/> displays the cancellation message centrally.
Commands\GroupedHelpWriter.cs (6)
12
/// Groups are determined by each command's <see cref="
BaseCommand
.HelpGroup"/> property.
49
var grouped = new Dictionary<HelpGroup, List<
BaseCommand
>>();
59
if (sub is
BaseCommand
baseCmd && baseCmd.HelpGroup is not HelpGroup.None)
85
foreach (
var
cmd in list)
189
private static void WriteGroup(TextWriter writer, string heading, List<
BaseCommand
> commands, int columnWidth, int width)
192
foreach (
var
cmd in commands)
NuGet\NuGetPackagePrefetcher.cs (2)
120
=> command is
BaseCommand
{ PrefetchesTemplatePackageMetadataForInvocation: true };
123
=> command is
BaseCommand
baseCommand && baseCommand.ShouldPrefetchCliPackageMetadata(updateNotificationsEnabled);
Packaging\PackagingService.cs (2)
256
if (_executionContext.Command is
BaseCommand
{ PrefetchesTemplatePackageMetadata: false } command)
258
throw new PackageMetadataPrefetchingValidationException($"Command '{command.Name}' consumes template package metadata but does not enable {nameof(
BaseCommand
.PrefetchesTemplatePackageMetadata)}.");
Utils\CliUpdateNotifier.cs (2)
101
if (executionContext.Command is
BaseCommand
{ PrefetchesCliPackageMetadata: false } command)
103
throw new PackageMetadataPrefetchingValidationException($"Command '{command.Name}' consumes cached CLI package metadata but does not enable {nameof(
BaseCommand
.PrefetchesCliPackageMetadata)}.");
Aspire.Cli.Tests (12)
Commands\BaseCommandTests.cs (1)
165
Assert.Contains(nameof(
BaseCommand
.PrefetchesTemplatePackageMetadata), exception.Message);
Commands\RootCommandTests.cs (1)
763
.Where(cmd => cmd is not
BaseCommand
baseCmd || baseCmd.HelpGroup is HelpGroup.None)
NuGet\NuGetPackagePrefetcherTests.cs (10)
63
Assert.Contains(nameof(
BaseCommand
.PrefetchesTemplatePackageMetadata), exception.Message);
81
Assert.Contains(nameof(
BaseCommand
.PrefetchesCliPackageMetadata), exception.Message);
239
var
command = Assert.IsAssignableFrom<
BaseCommand
>(provider.GetRequiredService(commandType));
253
var
command = Assert.IsAssignableFrom<
BaseCommand
>(provider.GetRequiredService(commandType));
287
BaseCommand
command = useTemplateSubcommand
327
var
command = Assert.IsAssignableFrom<
BaseCommand
>(provider.GetRequiredService(commandType));
480
BaseCommand
command,