97 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 (65)
Projects\GuestAppHostProjectTests.cs (5)
181Execute = new CommandSpec { Command = guestInstaller, Args = [] }, 182InstallDependencies = new CommandSpec { Command = guestInstaller, Args = [] } 1173Execute = new CommandSpec { Command = "unused", Args = [] }, 1177Args = OperatingSystem.IsWindows() ? ["/d", "/c", installScriptPath] : [installScriptPath] 2075Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
61Args = ["{appHostFile}"] 76Args = ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"] 83Args = ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"] 120Args = ["{appHostFile}"] 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}"] } 269Args = ["tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"] 276Args = ["tsc", "--noEmit", "-p", "tsconfig.apphost.json"] 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}"] }); 511Args = ["{appHostFile}"], 532Args = ["{appHostFile}"], 552Args = ["{appHostFile}"] 583Args = ["AppHost"], 591Args = ["--version"], 636Args = ["tsx", "{appHostFile}"] 655Args = ["--dir", "{appHostDir}"] 673Args = ["{appHostFile}"] 693Args = ["{args}"] 714Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 751new CommandSpec { Command = "dotnet", Args = ["--version"] }, 752new CommandSpec { Command = "aspire-command-that-does-not-exist", Args = [] } 804Args = GetArguments("from-first-command"), 813Args = GetArguments("from-second-command"), 848Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 852Args = ["install"], 885Args = ["tsx", "{appHostFile}"], 1150Args = ["--tsconfig", migrationFileName, "{appHostFile}"] 1198Args = ["--tsconfig", migrationFileName, "{appHostFile}"] 1224Args = ["{appHostFile}"] 1444execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1450Args = ["-d", "classes", "{appHostFile}"], 1599execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1605Args = ["-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)
143Execute = 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)
262Args = ["install"] 269Args = ["--no-install", "tsc", "--noEmit", "-p", AppHostTsConfigFileName] 275Args = ["--no-install", "tsx", "--tsconfig", AppHostTsConfigFileName, "{appHostFile}"] 280Args = [
51 references to Args
aspire (7)
Projects\GuestAppHostProject.cs (1)
2479string.Join(" ", runtimeSpec.Execute.Args));
Projects\GuestRuntime.cs (4)
108var args = ReplacePlaceholders(commandSpec.Args, null, directory, null); 156var args = ReplacePlaceholders(command.Args, null, directory, null); 290var args = ReplacePlaceholders(commandSpec.Args, appHostFile, directory, null); 587var 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)
262Assert.Equal(new[] { "--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json" }, preExecute.Args); 263Assert.Equal(new[] { "--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}" }, runtimeSpec.Execute.Args); 264Assert.Contains("npx --no-install tsc --noEmit -p tsconfig.apphost.json && npx --no-install tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", watchExecute.Args);
Aspire.Hosting.RemoteHost (1)
Language\IntegrationHostProcessLauncher.cs (1)
46var startInfo = CreateProcessStartInfo(command!, hostSpec.Execute.Args, descriptor.HostEntryPoint, OperatingSystem.IsWindows());
Aspire.Hosting.RemoteHost.Tests (2)
CodeGenerationResolverTests.cs (2)
103Assert.Equal(["--import", "tsx", "{entryPoint}"], spec.Execute.Args); 106Assert.Equal(["install"], spec.InstallDependencies.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" />.