95 writes to Command
aspire (16)
Projects\JavaAppHostToolchainResolver.cs (3)
837
Command
= baseCompile.Command,
873
Command
= "java",
893
Command
= Command,
Projects\TypeScriptAppHostToolchainResolver.cs (13)
204
Command
= GetCommandName(toolchain),
217
Command
= "bun",
222
Command
= "yarn",
227
Command
= "pnpm",
235
Command
= "deno",
249
Command
= "bun",
254
Command
= "yarn",
259
Command
= "pnpm",
268
Command
= "deno",
281
Command
= "bun",
296
Command
= "yarn",
311
Command
= "pnpm",
329
Command
= "deno",
Aspire.Cli.Tests (63)
Projects\GuestAppHostProjectTests.cs (3)
815
Execute = new CommandSpec {
Command
= "unused", Args = [] },
818
Command
= OperatingSystem.IsWindows() ? Path.Combine(Environment.SystemDirectory, "cmd.exe") : "/bin/sh",
1480
Execute = new CommandSpec {
Command
= "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
61
Command
= "test-cmd",
76
Command
= "npx",
83
Command
= "npx",
120
Command
= "my-runner",
139
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
140
watchExecute: new CommandSpec {
Command
= "watch-cmd", Args = ["--watch", "{appHostFile}"] }
157
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
158
watchExecute: new CommandSpec {
Command
= "watch-cmd", Args = ["--watch", "{appHostFile}"] },
161
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--noEmit"] }
179
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
182
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
225
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
228
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
269
Command
= "npx",
276
Command
= "npx",
320
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
323
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--noEmit"] }
354
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "missing-cmd", Args = ["{appHostFile}"] });
381
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] });
396
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
397
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] }
414
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
415
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] },
418
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
436
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
437
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] },
440
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
495
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] });
511
Command
= "test-cmd",
532
Command
= "test-cmd",
552
Command
= "test-cmd",
583
Command
= "java",
591
Command
= "java",
636
Command
= "npx",
655
Command
= "test-cmd",
673
Command
= "test-cmd",
693
Command
= "test-cmd",
715
Execute = new CommandSpec {
Command
= "test-cmd", Args = ["{appHostFile}"] },
752
new CommandSpec {
Command
= "dotnet", Args = ["--version"] },
753
new CommandSpec {
Command
= "aspire-command-that-does-not-exist", Args = [] }
804
Command
= command,
813
Command
= command,
849
Execute = new CommandSpec {
Command
= "npx", Args = ["tsx", "{appHostFile}"] },
852
Command
= "npm",
885
Command
= "npx",
1150
Command
= "test-cmd",
1198
Command
= "test-cmd",
1224
Command
= "test-cmd",
1445
execute: new CommandSpec {
Command
= "java", Args = ["AppHost"] },
1450
Command
= "javac",
1600
execute: new CommandSpec {
Command
= "java", Args = ["AppHost"] },
1605
Command
= "javac",
Projects\JavaAppHostToolchainResolverTests.cs (3)
60
Command
= "javac",
66
Command
= "java",
205
Command
= baseCompile.Command,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
448
Command
= "npm",
455
Command
= "npx",
461
Command
= "npx",
466
Command
= "npx",
TestServices\FakeAppHostServerSession.cs (1)
136
Execute = new CommandSpec {
Command
= "node", Args = ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
142
Command
= "go",
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
295
Command
= "javac",
318
Command
= "java",
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
54
Command
= "javac",
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
185
Command
= "uv",
191
Command
= "uv",
196
Command
= "uv",
221
Command
= python,
226
Command
= s_venvPython,
232
Command
= s_venvPython,
237
Command
= s_venvPython,
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
145
Command
= "cargo",
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
260
Command
= "npm",
267
Command
= "npx",
273
Command
= "npx",
278
Command
= "npx",
39 references to Command
aspire (13)
Projects\GuestAppHostProject.cs (1)
2124
runtimeSpec.Execute.
Command
,
Projects\GuestRuntime.cs (11)
109
using var activity = _profilingTelemetry.StartGuestInitializeCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory);
111
commandSpec.
Command
,
159
command.
Command
,
163
command.
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));
298
using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute);
299
var (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));
589
using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory, phase);
590
var (exitCode, output) = await launcher.LaunchAsync(commandSpec.
Command
, args, directory, mergedEnvironment, afterLaunchAsync: afterLaunchAsync, options: launchOptions, cancellationToken);
Projects\JavaAppHostToolchainResolver.cs (1)
837
Command = baseCompile.
Command
,
Aspire.Cli.Tests (24)
Projects\JavaAppHostToolchainResolverTests.cs (9)
30
Assert.Equal(Environment.GetEnvironmentVariable("ComSpec") ?? "cmd.exe", actual.
Command
);
40
Assert.Equal("sh", actual.
Command
);
155
Assert.Equal("javac", compile.
Command
);
169
Assert.Equal("java", spec.Execute.
Command
);
205
Command = baseCompile.
Command
,
258
Assert.Equal("javac", compile.
Command
);
270
Assert.Equal("java", spec.Execute.
Command
);
632
var startInfo = new ProcessStartInfo(command.
Command
)
650
using var process = Process.Start(startInfo) ?? throw new InvalidOperationException($"Failed to start '{command.
Command
}'.");
Projects\TypeScriptAppHostToolchainResolverTests.cs (15)
357
Assert.Equal("bun", runtimeSpec.InstallDependencies?.
Command
);
360
Assert.Equal("bun", preExecute.
Command
);
362
Assert.Equal("bun", runtimeSpec.Execute.
Command
);
365
Assert.Equal("bun", runtimeSpec.WatchExecute?.
Command
);
390
Assert.Equal("yarn", preExecute.
Command
);
392
Assert.Equal("yarn", runtimeSpec.Execute.
Command
);
394
Assert.Equal("yarn", runtimeSpec.WatchExecute?.
Command
);
406
Assert.Equal("pnpm", installDependencies.
Command
);
409
Assert.Equal("pnpm", preExecute.
Command
);
411
Assert.Equal("pnpm", runtimeSpec.Execute.
Command
);
413
Assert.Equal("pnpm", runtimeSpec.WatchExecute?.
Command
);
425
Assert.Equal("deno", runtimeSpec.InstallDependencies?.
Command
);
428
Assert.Equal("deno", preExecute.
Command
);
430
Assert.Equal("deno", runtimeSpec.Execute.
Command
);
432
Assert.Equal("deno", runtimeSpec.WatchExecute?.
Command
);
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
RustLanguageSupportTests.cs (1)
87
Assert.Equal("cargo", runtimeSpec.Execute.
Command
);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TypeScriptLanguageSupportTests.cs (1)
259
Assert.Equal("npx", preExecute.
Command
);