95 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 (63)
Projects\GuestAppHostProjectTests.cs (3)
815Execute = new CommandSpec { Command = "unused", Args = [] }, 816InstallDependencies = new CommandSpec 1480Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
59Execute = execute ?? new CommandSpec 74execute: new CommandSpec 81new CommandSpec 118var spec = CreateTestSpec(execute: new CommandSpec 139execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 140watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] } 157execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 158watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] }, 161new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 179execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 182new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 225execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 228new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 267execute: new CommandSpec 274new CommandSpec 320execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 323new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 354var spec = CreateTestSpec(execute: new CommandSpec { Command = "missing-cmd", Args = ["{appHostFile}"] }); 381var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 396execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 397publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] } 414execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 415publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 418new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 436execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 437publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 440new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 495var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 509var spec = CreateTestSpec(execute: new CommandSpec 530var spec = CreateTestSpec(execute: new CommandSpec 550var runtime = CreateRuntime(CreateTestSpec(execute: new CommandSpec 581execute: new CommandSpec 589new CommandSpec 634var spec = CreateTestSpec(execute: new CommandSpec 653var spec = CreateTestSpec(execute: new CommandSpec 671var spec = CreateTestSpec(execute: new CommandSpec 691var spec = CreateTestSpec(execute: new CommandSpec 715Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 752new CommandSpec { Command = "dotnet", Args = ["--version"] }, 753new CommandSpec { Command = "aspire-command-that-does-not-exist", Args = [] } 802new CommandSpec 811new CommandSpec 849Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 850InstallDependencies = new CommandSpec 883Execute = new CommandSpec 1148Execute = new CommandSpec 1196Execute = new CommandSpec 1222var spec = CreateTestSpec(execute: new CommandSpec 1445execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1448new CommandSpec 1600execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1603new 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)
136Execute = 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)
258InstallDependencies = new CommandSpec 265new CommandSpec 271Execute = new CommandSpec 276WatchExecute = new CommandSpec
59 references to CommandSpec
aspire (21)
Backchannel\BackchannelJsonSerializerContext.cs (1)
21[JsonSerializable(typeof(CommandSpec))]
Projects\GuestAppHostProject.cs (1)
2096CommandSpec[]? installDependencies = null;
Projects\GuestRuntime.cs (9)
26private readonly CommandSpec[]? _installDependencies; 45CommandSpec[]? installDependencies = null) 103foreach (var commandSpec in _spec.Initialize) 151foreach (var command in _installDependencies) 212var commandSpec = useWatchCommand 254var commandSpec = _spec.PublishExecute ?? _spec.Execute; 285foreach (var commandSpec in _spec.PreExecute) 573CommandSpec commandSpec, 602CommandSpec 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)
36CommandSpec[]? installDependencies = null) 47CommandSpec? execute = null, 48CommandSpec? watchExecute = null, 49CommandSpec? publishExecute = null, 50CommandSpec? installDependencies = null, 51CommandSpec[]? 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)
254var preExecute = Assert.Single(runtimeSpec.PreExecute!); 255var watchExecute = Assert.IsType<CommandSpec>(runtimeSpec.WatchExecute);
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" />.