82 instantiations of CommandSpec
aspire (13)
Projects\JavaAppHostToolchainResolver.cs (3)
682return new CommandSpec 715return new CommandSpec 735return new CommandSpec
Projects\TypeScriptAppHostToolchainResolver.cs (10)
174return new CommandSpec 187TypeScriptAppHostToolchain.Bun => new CommandSpec 192TypeScriptAppHostToolchain.Yarn => new CommandSpec 197TypeScriptAppHostToolchain.Pnpm => new CommandSpec 211TypeScriptAppHostToolchain.Bun => new CommandSpec 216TypeScriptAppHostToolchain.Yarn => new CommandSpec 221TypeScriptAppHostToolchain.Pnpm => new CommandSpec 234TypeScriptAppHostToolchain.Bun => new CommandSpec 249TypeScriptAppHostToolchain.Yarn => new CommandSpec 264TypeScriptAppHostToolchain.Pnpm => new CommandSpec
Aspire.Cli.Tests (53)
Projects\GuestRuntimeTests.cs (45)
61Execute = execute ?? new CommandSpec 76execute: new CommandSpec 83new CommandSpec 120var spec = CreateTestSpec(execute: new CommandSpec 141execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 142watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] } 159execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 160watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] }, 163new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 181execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 184new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 227execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 230new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 269execute: new CommandSpec 276new CommandSpec 322execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 325new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 356var spec = CreateTestSpec(execute: new CommandSpec { Command = "missing-cmd", Args = ["{appHostFile}"] }); 383var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 398execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 399publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] } 416execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 417publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 420new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 438execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 439publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 442new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 497var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 511var spec = CreateTestSpec(execute: new CommandSpec 532var spec = CreateTestSpec(execute: new CommandSpec 552var spec = CreateTestSpec(execute: new CommandSpec 571var spec = CreateTestSpec(execute: new CommandSpec 589var spec = CreateTestSpec(execute: new CommandSpec 609var spec = CreateTestSpec(execute: new CommandSpec 633Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 671Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 672InstallDependencies = new CommandSpec { Command = "npm", Args = ["install"] } 698Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] } 958Execute = new CommandSpec 1006Execute = new CommandSpec 1032var spec = CreateTestSpec(execute: new CommandSpec 1240execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1243new CommandSpec 1395execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1398new CommandSpec
Projects\JavaAppHostToolchainResolverTests.cs (3)
55new CommandSpec 61Execute = new CommandSpec 200new CommandSpec
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
358InstallDependencies = new CommandSpec 365new CommandSpec 371Execute = new CommandSpec 376WatchExecute = new CommandSpec
TestServices\FakeAppHostServerSession.cs (1)
116Execute = 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)
273var compile = new CommandSpec 300Execute = new CommandSpec
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
22var 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
48 references to CommandSpec
aspire (16)
Backchannel\BackchannelJsonSerializerContext.cs (1)
21[JsonSerializable(typeof(CommandSpec))]
Projects\GuestRuntime.cs (6)
88foreach (var commandSpec in _spec.Initialize) 181var commandSpec = useWatchCommand 223var commandSpec = _spec.PublishExecute ?? _spec.Execute; 254foreach (var commandSpec in _spec.PreExecute) 532CommandSpec commandSpec, 561CommandSpec commandSpec)
Projects\JavaAppHostToolchainResolver.cs (5)
547private static CommandSpec CreateInstallCommand( 643private static CommandSpec CreateCompileCommand(JavaAppHostToolchain toolchain, RuntimeSpec baseRuntimeSpec, string? projectPath, string classesDirectory, string dependencyDirectory) 645var baseCompile = baseRuntimeSpec.PreExecute?.FirstOrDefault() 708private static CommandSpec CreateExecuteCommand(string classesDirectory, string dependencyDirectory) 733public CommandSpec CreateCommand(string[] args)
Projects\TypeScriptAppHostToolchainResolver.cs (4)
164private static CommandSpec CreateInstallCommand(TypeScriptAppHostToolchain toolchain) 181private static CommandSpec[] CreatePreExecuteCommands(TypeScriptAppHostToolchain toolchain, string tsConfigFileName) 207private static CommandSpec CreateExecuteCommand(TypeScriptAppHostToolchain toolchain, string tsConfigFileName) 230private static CommandSpec CreateWatchCommand(TypeScriptAppHostToolchain toolchain, string tsConfigFileName)
Aspire.Cli.Tests (14)
Projects\GuestRuntimeTests.cs (5)
49CommandSpec? execute = null, 50CommandSpec? watchExecute = null, 51CommandSpec? publishExecute = null, 52CommandSpec? installDependencies = null, 53CommandSpec[]? preExecute = null)
Projects\JavaAppHostToolchainResolverTests.cs (4)
23private static void AssertWrapperInvocation(string wrapperPath, string appHostDirectory, string[] toolArgs, CommandSpec actual) 148var compile = Assert.Single(spec.PreExecute!); 189var baseCompile = baseSpec.PreExecute![0]; 248var compile = Assert.Single(spec.PreExecute!);
Projects\TypeScriptAppHostToolchainResolverTests.cs (5)
292var preExecute = Assert.Single(runtimeSpec.PreExecute!); 322var preExecute = Assert.Single(runtimeSpec.PreExecute!); 338var installDependencies = Assert.IsType<CommandSpec>(runtimeSpec.InstallDependencies); 341var 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)}"; 235upToDateCheckType.Assembly != typeof(CommandSpec).Assembly || 250$"The runtime {nameof(CommandSpec.UpToDateCheck)} contract does not match {expectedTypeName}."); 273var compile = new CommandSpec
Aspire.Hosting.CodeGeneration.Java.Tests (3)
JavaLanguageSupportTests.cs (3)
14var compile = Assert.Single(runtimeSpec.PreExecute!); 22var compile = new CommandSpec 48private 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.TypeSystem (7)
RuntimeSpec.cs (7)
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" />.