97 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 (65)
Projects\GuestAppHostProjectTests.cs (5)
181Execute = new CommandSpec { Command = guestInstaller, Args = [] }, 182InstallDependencies = new CommandSpec { Command = guestInstaller, Args = [] } 1173Execute = new CommandSpec { Command = "unused", Args = [] }, 1176Command = OperatingSystem.IsWindows() ? Path.Combine(Environment.SystemDirectory, "cmd.exe") : "/bin/sh", 2075Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
60Command = "test-cmd", 75Command = "npx", 82Command = "npx", 119Command = "my-runner", 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}"] } 268Command = "npx", 275Command = "npx", 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}"] }); 510Command = "test-cmd", 531Command = "test-cmd", 551Command = "test-cmd", 582Command = "java", 590Command = "java", 635Command = "npx", 654Command = "test-cmd", 672Command = "test-cmd", 692Command = "test-cmd", 714Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 751new CommandSpec { Command = "dotnet", Args = ["--version"] }, 752new CommandSpec { Command = "aspire-command-that-does-not-exist", Args = [] } 803Command = command, 812Command = command, 848Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 851Command = "npm", 884Command = "npx", 1149Command = "test-cmd", 1197Command = "test-cmd", 1223Command = "test-cmd", 1444execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1449Command = "javac", 1599execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1604Command = "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)
143Execute = 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)
261Command = "npm", 268Command = "npx", 274Command = "npx", 279Command = "npx",
43 references to Command
aspire (13)
Projects\GuestAppHostProject.cs (1)
2478runtimeSpec.Execute.Command,
Projects\GuestRuntime.cs (11)
112using var activity = _profilingTelemetry.StartGuestInitializeCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory); 114commandSpec.Command, 162command.Command, 166command.Command, 296_logger.LogDebug("Skipping up-to-date pre-execution command: {Command}", commandSpec.Command); 300_logger.LogDebug("Launching pre-execution command: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 301using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute); 302var (exitCode, output) = await preExecuteLauncher.LaunchAsync(commandSpec.Command, args, directory, mergedEnvironment, afterLaunchAsync: null, options: null, cancellationToken); 591_logger.LogDebug("Launching: {Command} {Args}", commandSpec.Command, string.Join(" ", args)); 592using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.Command, args, directory, phase); 593var (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 (2)
TypeScriptLanguageSupportTests.cs (2)
261Assert.Equal("npx", preExecute.Command); 299Assert.Equal("npx", provider.GetRuntimeSpec().Execute.Command);
Aspire.Hosting.RemoteHost (1)
Language\IntegrationHostProcessLauncher.cs (1)
41if (!CommandPathResolver.TryResolveCommand(hostSpec.Execute.Command, out var command, out var error))
Aspire.Hosting.RemoteHost.Tests (2)
CodeGenerationResolverTests.cs (2)
102Assert.Equal("node", spec.Execute.Command); 105Assert.Equal("npm", spec.InstallDependencies.Command);