82 writes to Command
aspire (13)
Projects\JavaAppHostToolchainResolver.cs (3)
684
Command
= baseCompile.Command,
717
Command
= "java",
737
Command
= Command,
Projects\TypeScriptAppHostToolchainResolver.cs (10)
176
Command
= GetCommandName(toolchain),
189
Command
= "bun",
194
Command
= "yarn",
199
Command
= "pnpm",
213
Command
= "bun",
218
Command
= "yarn",
223
Command
= "pnpm",
236
Command
= "bun",
251
Command
= "yarn",
266
Command
= "pnpm",
Aspire.Cli.Tests (53)
Projects\GuestRuntimeTests.cs (45)
63
Command
= "test-cmd",
78
Command
= "npx",
85
Command
= "npx",
122
Command
= "my-runner",
141
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
142
watchExecute: new CommandSpec {
Command
= "watch-cmd", Args = ["--watch", "{appHostFile}"] }
159
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
160
watchExecute: new CommandSpec {
Command
= "watch-cmd", Args = ["--watch", "{appHostFile}"] },
163
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--noEmit"] }
181
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
184
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
227
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
230
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
271
Command
= "npx",
278
Command
= "npx",
322
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
325
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--noEmit"] }
356
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "missing-cmd", Args = ["{appHostFile}"] });
383
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] });
398
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
399
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] }
416
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
417
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] },
420
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
438
execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] },
439
publishExecute: new CommandSpec {
Command
= "publish-cmd", Args = ["{appHostFile}", "{args}"] },
442
new CommandSpec {
Command
= "typecheck-cmd", Args = ["--project", "{appHostDir}"] }
497
var spec = CreateTestSpec(execute: new CommandSpec {
Command
= "run-cmd", Args = ["{appHostFile}"] });
513
Command
= "test-cmd",
534
Command
= "test-cmd",
554
Command
= "npx",
573
Command
= "test-cmd",
591
Command
= "test-cmd",
611
Command
= "test-cmd",
633
Execute = new CommandSpec {
Command
= "test-cmd", Args = ["{appHostFile}"] },
671
Execute = new CommandSpec {
Command
= "npx", Args = ["tsx", "{appHostFile}"] },
672
InstallDependencies = new CommandSpec {
Command
= "npm", Args = ["install"] }
698
Execute = new CommandSpec {
Command
= "npx", Args = ["tsx", "{appHostFile}"] }
960
Command
= "test-cmd",
1008
Command
= "test-cmd",
1034
Command
= "test-cmd",
1240
execute: new CommandSpec {
Command
= "java", Args = ["AppHost"] },
1245
Command
= "javac",
1395
execute: new CommandSpec {
Command
= "java", Args = ["AppHost"] },
1400
Command
= "javac",
Projects\JavaAppHostToolchainResolverTests.cs (3)
57
Command
= "javac",
63
Command
= "java",
202
Command
= baseCompile.Command,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
360
Command
= "npm",
367
Command
= "npx",
373
Command
= "npx",
378
Command
= "npx",
TestServices\FakeAppHostServerSession.cs (1)
116
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)
279
Command
= "javac",
302
Command
= "java",
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
24
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",
33 references to Command
aspire (13)
Projects\GuestAppHostProject.cs (1)
2067
runtimeSpec.Execute.
Command
,
Projects\GuestRuntime.cs (11)
94
using var activity = _profilingTelemetry.StartGuestInitializeCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory);
96
commandSpec.
Command
,
134
using 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));
267
using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory, ProfilingTelemetry.Values.GuestCommandPhasePreExecute);
268
var (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));
548
using var activity = _profilingTelemetry.StartGuestExecuteCommand(_spec.Language, _spec.DisplayName, commandSpec.
Command
, args, directory, phase);
549
var (exitCode, output) = await launcher.LaunchAsync(commandSpec.
Command
, args, directory, mergedEnvironment, afterLaunchAsync: afterLaunchAsync, options: launchOptions, cancellationToken);
Projects\JavaAppHostToolchainResolver.cs (1)
684
Command = baseCompile.
Command
,
Aspire.Cli.Tests (18)
Projects\JavaAppHostToolchainResolverTests.cs (7)
27
Assert.Equal(Environment.GetEnvironmentVariable("ComSpec") ?? "cmd.exe", actual.
Command
);
37
Assert.Equal("sh", actual.
Command
);
152
Assert.Equal("javac", compile.
Command
);
166
Assert.Equal("java", spec.Execute.
Command
);
202
Command = baseCompile.
Command
,
249
Assert.Equal("javac", compile.
Command
);
261
Assert.Equal("java", spec.Execute.
Command
);
Projects\TypeScriptAppHostToolchainResolverTests.cs (11)
290
Assert.Equal("bun", runtimeSpec.InstallDependencies?.
Command
);
293
Assert.Equal("bun", preExecute.
Command
);
295
Assert.Equal("bun", runtimeSpec.Execute.
Command
);
298
Assert.Equal("bun", runtimeSpec.WatchExecute?.
Command
);
323
Assert.Equal("yarn", preExecute.
Command
);
325
Assert.Equal("yarn", runtimeSpec.Execute.
Command
);
327
Assert.Equal("yarn", runtimeSpec.WatchExecute?.
Command
);
339
Assert.Equal("pnpm", installDependencies.
Command
);
342
Assert.Equal("pnpm", preExecute.
Command
);
344
Assert.Equal("pnpm", runtimeSpec.Execute.
Command
);
346
Assert.Equal("pnpm", 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)
261
Assert.Equal("npx", preExecute.
Command
);