82 writes to Command
aspire (13)
Projects\JavaAppHostToolchainResolver.cs (3)
684Command = baseCompile.Command, 717Command = "java", 737Command = Command,
Projects\TypeScriptAppHostToolchainResolver.cs (10)
176Command = GetCommandName(toolchain), 189Command = "bun", 194Command = "yarn", 199Command = "pnpm", 213Command = "bun", 218Command = "yarn", 223Command = "pnpm", 236Command = "bun", 251Command = "yarn", 266Command = "pnpm",
Aspire.Cli.Tests (53)
Projects\GuestRuntimeTests.cs (45)
63Command = "test-cmd", 78Command = "npx", 85Command = "npx", 122Command = "my-runner", 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}"] } 271Command = "npx", 278Command = "npx", 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}"] }); 513Command = "test-cmd", 534Command = "test-cmd", 554Command = "npx", 573Command = "test-cmd", 591Command = "test-cmd", 611Command = "test-cmd", 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}"] } 960Command = "test-cmd", 1008Command = "test-cmd", 1034Command = "test-cmd", 1240execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1245Command = "javac", 1395execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1400Command = "javac",
Projects\JavaAppHostToolchainResolverTests.cs (3)
57Command = "javac", 63Command = "java", 202Command = baseCompile.Command,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
360Command = "npm", 367Command = "npx", 373Command = "npx", 378Command = "npx",
TestServices\FakeAppHostServerSession.cs (1)
116Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
142Command = "go",
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
279Command = "javac", 302Command = "java",
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
24Command = "javac",
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
185Command = "uv", 191Command = "uv", 196Command = "uv", 221Command = python, 226Command = s_venvPython, 232Command = s_venvPython, 237Command = s_venvPython,
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
145Command = "cargo",
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
260Command = "npm", 267Command = "npx", 273Command = "npx", 278Command = "npx",
33 references to Command
aspire (13)
Projects\GuestAppHostProject.cs (1)
2067runtimeSpec.Execute.Command,
Projects\GuestRuntime.cs (11)
94using var activity = _profilingTelemetry.StartGuestInitializeCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory); 96commandSpec.Command, 134using var activity = _profilingTelemetry.StartGuestInstallDependencies(_spec.Language, _spec.DisplayName, _spec.InstallDependencies.Command, args, directory); 136_spec.InstallDependencies.Command, 262_logger.LogDebug("Skipping up-to-date pre-execution command: {Command}", commandSpec.Command); 266_logger.LogDebug("Launching pre-execution command: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 267using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute); 268var (exitCode, output) = await preExecuteLauncher.LaunchAsync(commandSpec.Command, args, directory, mergedEnvironment, afterLaunchAsync: null, options: null, cancellationToken); 547_logger.LogDebug("Launching: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 548using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, phase); 549var (exitCode, output) = await launcher.LaunchAsync(commandSpec.Command, args, directory, mergedEnvironment, afterLaunchAsync: afterLaunchAsync, options: launchOptions, cancellationToken);
Projects\JavaAppHostToolchainResolver.cs (1)
684Command = baseCompile.Command,
Aspire.Cli.Tests (18)
Projects\JavaAppHostToolchainResolverTests.cs (7)
27Assert.Equal(Environment.GetEnvironmentVariable("ComSpec") ?? "cmd.exe", actual.Command); 37Assert.Equal("sh", actual.Command); 152Assert.Equal("javac", compile.Command); 166Assert.Equal("java", spec.Execute.Command); 202Command = baseCompile.Command, 249Assert.Equal("javac", compile.Command); 261Assert.Equal("java", spec.Execute.Command);
Projects\TypeScriptAppHostToolchainResolverTests.cs (11)
290Assert.Equal("bun", runtimeSpec.InstallDependencies?.Command); 293Assert.Equal("bun", preExecute.Command); 295Assert.Equal("bun", runtimeSpec.Execute.Command); 298Assert.Equal("bun", runtimeSpec.WatchExecute?.Command); 323Assert.Equal("yarn", preExecute.Command); 325Assert.Equal("yarn", runtimeSpec.Execute.Command); 327Assert.Equal("yarn", runtimeSpec.WatchExecute?.Command); 339Assert.Equal("pnpm", installDependencies.Command); 342Assert.Equal("pnpm", preExecute.Command); 344Assert.Equal("pnpm", runtimeSpec.Execute.Command); 346Assert.Equal("pnpm", runtimeSpec.WatchExecute?.Command);
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
RustLanguageSupportTests.cs (1)
87Assert.Equal("cargo", runtimeSpec.Execute.Command);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TypeScriptLanguageSupportTests.cs (1)
261Assert.Equal("npx", preExecute.Command);