95 writes to Args
aspire (16)
Projects\JavaAppHostToolchainResolver.cs (3)
838
Args
= args,
877
Args
= ["-cp", classPath, "AppHost"]
894
Args
= [.. PrefixArgs, .. args]
Projects\TypeScriptAppHostToolchainResolver.cs (13)
205
Args
= args
218
Args
= ["run", "tsc", "--noEmit", "-p", tsConfigFileName]
223
Args
= ["run", "tsc", "--noEmit", "-p", tsConfigFileName]
228
Args
= ["exec", "tsc", "--noEmit", "-p", tsConfigFileName]
236
Args
= ["check", "--unstable-sloppy-imports", "{appHostFile}"]
250
Args
= ["run", "{appHostFile}"]
255
Args
= ["run", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"]
260
Args
= ["exec", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"]
269
Args
= ["run", "-A", "--unstable-sloppy-imports", "{appHostFile}"]
282
Args
=
297
Args
=
312
Args
=
330
Args
= ["run", "-A", "--unstable-sloppy-imports", "--check", "--watch", "{appHostFile}"]
Aspire.Cli.Tests (63)
Projects\GuestAppHostProjectTests.cs (3)
815
Execute = new CommandSpec { Command = "unused",
Args
= [] },
819
Args
= OperatingSystem.IsWindows() ? ["/d", "/c", installScriptPath] : [installScriptPath]
1480
Execute = new CommandSpec { Command = "node",
Args
= ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
62
Args
= ["{appHostFile}"]
77
Args
= ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
84
Args
= ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
121
Args
= ["{appHostFile}"]
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}"] }
270
Args
= ["tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
277
Args
= ["tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
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}"] });
512
Args
= ["{appHostFile}"],
533
Args
= ["{appHostFile}"],
553
Args
= ["{appHostFile}"]
584
Args
= ["AppHost"],
592
Args
= ["--version"],
637
Args
= ["tsx", "{appHostFile}"]
656
Args
= ["--dir", "{appHostDir}"]
674
Args
= ["{appHostFile}"]
694
Args
= ["{args}"]
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
= [] }
805
Args
= GetArguments("from-first-command"),
814
Args
= GetArguments("from-second-command"),
849
Execute = new CommandSpec { Command = "npx",
Args
= ["tsx", "{appHostFile}"] },
853
Args
= ["install"],
886
Args
= ["tsx", "{appHostFile}"],
1151
Args
= ["--tsconfig", migrationFileName, "{appHostFile}"]
1199
Args
= ["--tsconfig", migrationFileName, "{appHostFile}"]
1225
Args
= ["{appHostFile}"]
1445
execute: new CommandSpec { Command = "java",
Args
= ["AppHost"] },
1451
Args
= ["-d", "classes", "{appHostFile}"],
1600
execute: new CommandSpec { Command = "java",
Args
= ["AppHost"] },
1606
Args
= ["-d", "classes", "{appHostFile}"],
Projects\JavaAppHostToolchainResolverTests.cs (3)
61
Args
= ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"]
67
Args
= ["-cp", ".java-build", "AppHost"]
206
Args
= baseCompile.Args,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
449
Args
= ["install"]
456
Args
= ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
462
Args
= ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
467
Args
= ["--no-install", "nodemon", "--exec", "npx --no-install tsx --tsconfig tsconfig.apphost.json {appHostFile}"]
TestServices\FakeAppHostServerSession.cs (1)
136
Execute = new CommandSpec { Command = "node",
Args
= ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
143
Args
= ["run", "."]
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
296
Args
= [.. s_javacOptions, "-d", BuildOutputDirectory, $"@{GeneratedSourcesListPath}", "{appHostFile}"]
322
Args
= ["-cp", BuildOutputDirectory, AppHostClassName]
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
55
Args
= ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"]
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
186
Args
= ["venv", ".venv", "--allow-existing"]
192
Args
= ["pip", "sync", "pylock.apphost.toml"]
197
Args
= ["run", "python", "{appHostFile}", "{args}"]
222
Args
= initializeArgs
227
Args
= ["-m", "ensurepip", "--upgrade"]
233
Args
= ["-m", "pip", "install", "-r", "apphost_requirements.txt"]
238
Args
= ["{appHostFile}", "{args}"]
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
153
Args
= ["run", "--bin", AppHostBinaryName, "--"]
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
261
Args
= ["install"]
268
Args
= ["--no-install", "tsc", "--noEmit", "-p", AppHostTsConfigFileName]
274
Args
= ["--no-install", "tsx", "--tsconfig", AppHostTsConfigFileName, "{appHostFile}"]
279
Args
= [
48 references to Args
aspire (7)
Projects\GuestAppHostProject.cs (1)
2125
string.Join(" ", runtimeSpec.Execute.
Args
));
Projects\GuestRuntime.cs (4)
105
var args = ReplacePlaceholders(commandSpec.
Args
, null, directory, null);
153
var args = ReplacePlaceholders(command.
Args
, null, directory, null);
287
var args = ReplacePlaceholders(commandSpec.
Args
, appHostFile, directory, null);
584
var args = ReplacePlaceholders(commandSpec.
Args
, appHostFile, directory, additionalArgs);
Projects\JavaAppHostToolchainResolver.cs (1)
801
var baseArgs = baseCompile.
Args
?? [];
Projects\TypeScriptAppHostToolchainResolver.cs (1)
338
var args = runtimeSpec.Execute.
Args
;
Aspire.Cli.Tests (31)
Projects\JavaAppHostToolchainResolverTests.cs (16)
35
actual.
Args
);
41
Assert.Equal([wrapperPath, .. toolArgs], actual.
Args
);
165
compile.
Args
);
172
spec.Execute.
Args
);
173
Assert.DoesNotContain(spec.Execute.
Args
, arg => arg.Contains("{args}", StringComparison.Ordinal));
206
Args = baseCompile.
Args
,
268
compile.
Args
);
273
spec.Execute.
Args
);
640
foreach (var argument in command.
Args
)
858
Assert.Contains("-f", spec.InstallDependencies!.
Args
);
859
Assert.Contains(Path.Combine(toProjectRoot, "pom.xml"), spec.InstallDependencies.
Args
);
864
Assert.Contains($"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", spec.InstallDependencies.
Args
);
876
Assert.Single(spec.PreExecute!).
Args
);
883
spec.Execute.
Args
);
903
var initScriptArgument = spec.InstallDependencies!.
Args
[Array.IndexOf(spec.InstallDependencies.
Args
, "--init-script") + 1];
Projects\TypeScriptAppHostToolchainResolverTests.cs (15)
358
Assert.Equal(["install"], runtimeSpec.InstallDependencies!.
Args
);
361
Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
363
Assert.Equal(["run", "{appHostFile}"], runtimeSpec.Execute.
Args
);
377
runtimeSpec.WatchExecute!.
Args
);
391
Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
393
Assert.Equal(["run", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.
Args
);
395
Assert.Contains("yarn run tsc --noEmit -p tsconfig.apphost.json && yarn run tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.
Args
?? []);
407
Assert.Equal(["install", "--ignore-workspace"], installDependencies.
Args
);
410
Assert.Equal(["exec", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
412
Assert.Equal(["exec", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.
Args
);
414
Assert.Contains("pnpm exec tsc --noEmit -p tsconfig.apphost.json && pnpm exec tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.
Args
?? []);
426
Assert.Equal(["install"], runtimeSpec.InstallDependencies!.
Args
);
429
Assert.Equal(["check", "--unstable-sloppy-imports", "{appHostFile}"], preExecute.
Args
);
431
Assert.Equal(["run", "-A", "--unstable-sloppy-imports", "{appHostFile}"], runtimeSpec.Execute.
Args
);
433
Assert.Equal(["run", "-A", "--unstable-sloppy-imports", "--check", "--watch", "{appHostFile}"], runtimeSpec.WatchExecute!.
Args
);
Aspire.Hosting.CodeGeneration.Java.Tests (3)
JavaLanguageSupportTests.cs (3)
26
var releaseArgumentIndex = Array.IndexOf(compile.
Args
, "--release");
28
Assert.InRange(releaseArgumentIndex, 0, compile.
Args
.Length - 2);
29
var runtimeRelease = compile.
Args
[releaseArgumentIndex + 1];
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
RustLanguageSupportTests.cs (2)
88
Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.
Args
);
115
Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.
Args
);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TypeScriptLanguageSupportTests.cs (3)
260
Assert.Equal(new[] { "--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json" }, preExecute.
Args
);
261
Assert.Equal(new[] { "--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}" }, runtimeSpec.Execute.
Args
);
262
Assert.Contains("npx --no-install tsc --noEmit -p tsconfig.apphost.json && npx --no-install tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", watchExecute.
Args
);
Aspire.TypeSystem (2)
RuntimeSpec.cs (2)
135
/// absolute. Supports the same placeholders as <see cref="CommandSpec.
Args
" />.
148
/// working directory unless absolute. Supports the same placeholders as <see cref="CommandSpec.
Args
" />.