97 instantiations of CommandSpec
aspire (16)
Projects\JavaAppHostToolchainResolver.cs (3)
835return new CommandSpec 871return new CommandSpec 891return new CommandSpec
Projects\TypeScriptAppHostToolchainResolver.cs (13)
202return new CommandSpec 215TypeScriptAppHostToolchain.Bun => new CommandSpec 220TypeScriptAppHostToolchain.Yarn => new CommandSpec 225TypeScriptAppHostToolchain.Pnpm => new CommandSpec 233TypeScriptAppHostToolchain.Deno => new CommandSpec 247TypeScriptAppHostToolchain.Bun => new CommandSpec 252TypeScriptAppHostToolchain.Yarn => new CommandSpec 257TypeScriptAppHostToolchain.Pnpm => new CommandSpec 266TypeScriptAppHostToolchain.Deno => new CommandSpec 279TypeScriptAppHostToolchain.Bun => new CommandSpec 294TypeScriptAppHostToolchain.Yarn => new CommandSpec 309TypeScriptAppHostToolchain.Pnpm => new CommandSpec 327TypeScriptAppHostToolchain.Deno => new CommandSpec
Aspire.Cli.Tests (65)
Projects\GuestAppHostProjectTests.cs (5)
181Execute = new CommandSpec { Command = guestInstaller, Args = [] }, 182InstallDependencies = new CommandSpec { Command = guestInstaller, Args = [] } 1173Execute = new CommandSpec { Command = "unused", Args = [] }, 1174InstallDependencies = new CommandSpec 2075Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
58Execute = execute ?? new CommandSpec 73execute: new CommandSpec 80new CommandSpec 117var spec = CreateTestSpec(execute: new CommandSpec 138execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 139watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] } 156execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 157watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] }, 160new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 178execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 181new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 224execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 227new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 266execute: new CommandSpec 273new CommandSpec 319execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 322new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 353var spec = CreateTestSpec(execute: new CommandSpec { Command = "missing-cmd", Args = ["{appHostFile}"] }); 380var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 395execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 396publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] } 413execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 414publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 417new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 435execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 436publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 439new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 494var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 508var spec = CreateTestSpec(execute: new CommandSpec 529var spec = CreateTestSpec(execute: new CommandSpec 549var runtime = CreateRuntime(CreateTestSpec(execute: new CommandSpec 580execute: new CommandSpec 588new CommandSpec 633var spec = CreateTestSpec(execute: new CommandSpec 652var spec = CreateTestSpec(execute: new CommandSpec 670var spec = CreateTestSpec(execute: new CommandSpec 690var spec = CreateTestSpec(execute: new CommandSpec 714Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 751new CommandSpec { Command = "dotnet", Args = ["--version"] }, 752new CommandSpec { Command = "aspire-command-that-does-not-exist", Args = [] } 801new CommandSpec 810new CommandSpec 848Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 849InstallDependencies = new CommandSpec 882Execute = new CommandSpec 1147Execute = new CommandSpec 1195Execute = new CommandSpec 1221var spec = CreateTestSpec(execute: new CommandSpec 1444execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1447new CommandSpec 1599execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1602new CommandSpec
Projects\JavaAppHostToolchainResolverTests.cs (3)
58new CommandSpec 64Execute = new CommandSpec 203new CommandSpec
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
446InstallDependencies = new CommandSpec 453new CommandSpec 459Execute = new CommandSpec 464WatchExecute = new CommandSpec
TestServices\FakeAppHostServerSession.cs (1)
143Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
140Execute = new CommandSpec
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
289var compile = new CommandSpec 316Execute = new CommandSpec
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
52var compile = new CommandSpec
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
183new CommandSpec 189InstallDependencies = new CommandSpec 194Execute = new CommandSpec 219new CommandSpec 224new CommandSpec 230InstallDependencies = new CommandSpec 235Execute = new CommandSpec
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
143Execute = new CommandSpec
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
259InstallDependencies = new CommandSpec 266new CommandSpec 272Execute = new CommandSpec 277WatchExecute = new CommandSpec
61 references to CommandSpec
aspire (21)
Backchannel\BackchannelJsonSerializerContext.cs (1)
22[JsonSerializable(typeof(CommandSpec))]
Projects\GuestAppHostProject.cs (1)
2449CommandSpec[]? installDependencies = null;
Projects\GuestRuntime.cs (9)
26private readonly CommandSpec[]? _installDependencies; 47CommandSpec[]? installDependencies = null) 106foreach (var commandSpec in _spec.Initialize) 154foreach (var command in _installDependencies) 215var commandSpec = useWatchCommand 257var commandSpec = _spec.PublishExecute ?? _spec.Execute; 288foreach (var commandSpec in _spec.PreExecute) 576CommandSpec commandSpec, 605CommandSpec commandSpec)
Projects\JavaAppHostToolchainResolver.cs (6)
368out CommandSpec[]? installDependencies) 658private static CommandSpec[] CreateInstallCommands( 796private static CommandSpec CreateCompileCommand(JavaAppHostToolchain toolchain, RuntimeSpec baseRuntimeSpec, string? projectPath, string classesDirectory, string dependencyDirectory) 798var baseCompile = baseRuntimeSpec.PreExecute?.FirstOrDefault() 864private static CommandSpec CreateExecuteCommand(string classesDirectory, string dependencyDirectory) 889public CommandSpec CreateCommand(string[] args)
Projects\TypeScriptAppHostToolchainResolver.cs (4)
192private static CommandSpec CreateInstallCommand(TypeScriptAppHostToolchain toolchain) 209private static CommandSpec[] CreatePreExecuteCommands(TypeScriptAppHostToolchain toolchain, string tsConfigFileName) 243private static CommandSpec CreateExecuteCommand(TypeScriptAppHostToolchain toolchain, string tsConfigFileName) 275private static CommandSpec CreateWatchCommand(TypeScriptAppHostToolchain toolchain, string tsConfigFileName)
Aspire.Cli.Tests (18)
Projects\GuestRuntimeTests.cs (6)
34CommandSpec[]? installDependencies = null) 46CommandSpec? execute = null, 47CommandSpec? watchExecute = null, 48CommandSpec? publishExecute = null, 49CommandSpec? installDependencies = null, 50CommandSpec[]? preExecute = null)
Projects\JavaAppHostToolchainResolverTests.cs (6)
26private static void AssertWrapperInvocation(string wrapperPath, string appHostDirectory, string[] toolArgs, CommandSpec actual) 151var compile = Assert.Single(spec.PreExecute!); 192var baseCompile = baseSpec.PreExecute![0]; 257var compile = Assert.Single(spec.PreExecute!); 408var copyDependencies = installDependencies[1]; 628CommandSpec command,
Projects\TypeScriptAppHostToolchainResolverTests.cs (6)
359var preExecute = Assert.Single(runtimeSpec.PreExecute!); 389var preExecute = Assert.Single(runtimeSpec.PreExecute!); 405var installDependencies = Assert.IsType<CommandSpec>(runtimeSpec.InstallDependencies); 408var preExecute = Assert.Single(runtimeSpec.PreExecute!); 427var preExecute = Assert.Single(runtimeSpec.PreExecute!);
Aspire.Hosting.CodeGeneration.Java (5)
JavaLanguageSupport.cs (5)
220var upToDateCheckProperty = commandSpec.GetType().GetProperty(nameof(CommandSpec.UpToDateCheck)); 227var expectedTypeName = $"{typeof(CommandSpec).Namespace}.{nameof(CommandUpToDateCheck)}"; 244upToDateCheckType.Assembly != typeof(CommandSpec).Assembly || 262$"The runtime {nameof(CommandSpec.UpToDateCheck)} contract does not match {expectedTypeName}."); 289var compile = new CommandSpec
Aspire.Hosting.CodeGeneration.Java.Tests (4)
JavaLanguageSupportTests.cs (4)
16var compile = Assert.Single(runtimeSpec.PreExecute!); 25var compile = Assert.Single(runtimeSpec.PreExecute!); 52var compile = new CommandSpec 107private static void AssertCompileUpToDateCheck(CommandSpec compile)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TypeScriptLanguageSupportTests.cs (3)
256var preExecute = Assert.Single(runtimeSpec.PreExecute!); 257var watchExecute = Assert.IsType<CommandSpec>(runtimeSpec.WatchExecute);
Aspire.Hosting.RemoteHost (2)
Language\IntegrationHostSpec.cs (2)
17public required CommandSpec Execute { get; init; } 24public CommandSpec? InstallDependencies { get; init; }
Aspire.TypeSystem (8)
RuntimeSpec.cs (8)
35public CommandSpec[]? Initialize { get; init; } 40public CommandSpec? InstallDependencies { get; init; } 46public CommandSpec[]? PreExecute { get; init; } 51public required CommandSpec Execute { get; init; } 56public CommandSpec? WatchExecute { get; init; } 61public CommandSpec? PublishExecute { get; init; } 135/// absolute. Supports the same placeholders as <see cref="CommandSpec.Args" />. 148/// working directory unless absolute. Supports the same placeholders as <see cref="CommandSpec.Args" />.