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