95 writes to Command
aspire (16)
Projects\JavaAppHostToolchainResolver.cs (3)
837Command = baseCompile.Command, 873Command = "java", 893Command = Command,
Projects\TypeScriptAppHostToolchainResolver.cs (13)
204Command = GetCommandName(toolchain), 217Command = "bun", 222Command = "yarn", 227Command = "pnpm", 235Command = "deno", 249Command = "bun", 254Command = "yarn", 259Command = "pnpm", 268Command = "deno", 281Command = "bun", 296Command = "yarn", 311Command = "pnpm", 329Command = "deno",
Aspire.Cli.Tests (63)
Projects\GuestAppHostProjectTests.cs (3)
815Execute = new CommandSpec { Command = "unused", Args = [] }, 818Command = OperatingSystem.IsWindows() ? Path.Combine(Environment.SystemDirectory, "cmd.exe") : "/bin/sh", 1480Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
61Command = "test-cmd", 76Command = "npx", 83Command = "npx", 120Command = "my-runner", 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}"] } 269Command = "npx", 276Command = "npx", 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}"] }); 511Command = "test-cmd", 532Command = "test-cmd", 552Command = "test-cmd", 583Command = "java", 591Command = "java", 636Command = "npx", 655Command = "test-cmd", 673Command = "test-cmd", 693Command = "test-cmd", 715Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 752new CommandSpec { Command = "dotnet", Args = ["--version"] }, 753new CommandSpec { Command = "aspire-command-that-does-not-exist", Args = [] } 804Command = command, 813Command = command, 849Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 852Command = "npm", 885Command = "npx", 1150Command = "test-cmd", 1198Command = "test-cmd", 1224Command = "test-cmd", 1445execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1450Command = "javac", 1600execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1605Command = "javac",
Projects\JavaAppHostToolchainResolverTests.cs (3)
60Command = "javac", 66Command = "java", 205Command = baseCompile.Command,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
448Command = "npm", 455Command = "npx", 461Command = "npx", 466Command = "npx",
TestServices\FakeAppHostServerSession.cs (1)
136Execute = 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)
295Command = "javac", 318Command = "java",
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
54Command = "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",
39 references to Command
aspire (13)
Projects\GuestAppHostProject.cs (1)
2124runtimeSpec.Execute.Command,
Projects\GuestRuntime.cs (11)
109using var activity = _profilingTelemetry.StartGuestInitializeCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory); 111commandSpec.Command, 159command.Command, 163command.Command, 293_logger.LogDebug("Skipping up-to-date pre-execution command: {Command}", commandSpec.Command); 297_logger.LogDebug("Launching pre-execution command: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 298using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute); 299var (exitCode, output) = await preExecuteLauncher.LaunchAsync(commandSpec.Command, args, directory, mergedEnvironment, afterLaunchAsync: null, options: null, cancellationToken); 588_logger.LogDebug("Launching: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 589using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, phase); 590var (exitCode, output) = await launcher.LaunchAsync(commandSpec.Command, args, directory, mergedEnvironment, afterLaunchAsync: afterLaunchAsync, options: launchOptions, cancellationToken);
Projects\JavaAppHostToolchainResolver.cs (1)
837Command = baseCompile.Command,
Aspire.Cli.Tests (24)
Projects\JavaAppHostToolchainResolverTests.cs (9)
30Assert.Equal(Environment.GetEnvironmentVariable("ComSpec") ?? "cmd.exe", actual.Command); 40Assert.Equal("sh", actual.Command); 155Assert.Equal("javac", compile.Command); 169Assert.Equal("java", spec.Execute.Command); 205Command = baseCompile.Command, 258Assert.Equal("javac", compile.Command); 270Assert.Equal("java", spec.Execute.Command); 632var startInfo = new ProcessStartInfo(command.Command) 650using var process = Process.Start(startInfo) ?? throw new InvalidOperationException($"Failed to start '{command.Command}'.");
Projects\TypeScriptAppHostToolchainResolverTests.cs (15)
357Assert.Equal("bun", runtimeSpec.InstallDependencies?.Command); 360Assert.Equal("bun", preExecute.Command); 362Assert.Equal("bun", runtimeSpec.Execute.Command); 365Assert.Equal("bun", runtimeSpec.WatchExecute?.Command); 390Assert.Equal("yarn", preExecute.Command); 392Assert.Equal("yarn", runtimeSpec.Execute.Command); 394Assert.Equal("yarn", runtimeSpec.WatchExecute?.Command); 406Assert.Equal("pnpm", installDependencies.Command); 409Assert.Equal("pnpm", preExecute.Command); 411Assert.Equal("pnpm", runtimeSpec.Execute.Command); 413Assert.Equal("pnpm", runtimeSpec.WatchExecute?.Command); 425Assert.Equal("deno", runtimeSpec.InstallDependencies?.Command); 428Assert.Equal("deno", preExecute.Command); 430Assert.Equal("deno", runtimeSpec.Execute.Command); 432Assert.Equal("deno", 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)
259Assert.Equal("npx", preExecute.Command);