61 references to QuoteBashArg
Aspire.Cli.EndToEnd.Tests (61)
AgentCommandTests.cs (8)
455$"jq -e --arg repository {AspireCliShellCommandHelpers.QuoteBashArg(repository)} " + 482$"readlink -f \"$(command -v aspire)\" > {AspireCliShellCommandHelpers.QuoteBashArg(CliE2ETestHelpers.ToContainerPath(executablePathFile, workspace))}", 488$"export HOME={AspireCliShellCommandHelpers.QuoteBashArg(containerHome)} " + 489$"XDG_CONFIG_HOME={AspireCliShellCommandHelpers.QuoteBashArg($"{containerHome}/.config")} " + 490$"COPILOT_HOME={AspireCliShellCommandHelpers.QuoteBashArg($"{containerHome}/.copilot")} " + 491$"CLAUDE_CONFIG_DIR={AspireCliShellCommandHelpers.QuoteBashArg($"{containerHome}/.claude")} " + 494await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerProject)}", counter); 596$"jq -e --argjson expected {AspireCliShellCommandHelpers.QuoteBashArg(expectedClaudeUserSettingsAfterProjectSetup.ToJsonString())} " +
AppHostSyntaxErrorOutputTests.cs (1)
141var quotedWorkingDirectory = AspireCliShellCommandHelpers.QuoteBashArg(workingDirectory);
BundleSmokeTests.cs (4)
96var quotedAppHostProjectPath = AspireCliShellCommandHelpers.QuoteBashArg(appHostProjectRelativePath); 168await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(ProjectName)}", counter); 193$"dotnet run --no-launch-profile --project {AspireCliShellCommandHelpers.QuoteBashArg(appHostProjectRelativePath)} -- --from-real-dnx"); 260await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
CompletionTests.cs (1)
101await auto.RunCommandAsync($"export COMPLETION_TEST_VALUE={AspireCliShellCommandHelpers.QuoteBashArg(candidate)}", counter);
Helpers\CliE2EAutomatorHelpers.cs (15)
126await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 128await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 352: $" --channel {AspireCliShellCommandHelpers.QuoteBashArg(channel)}"; 356$"aspire new {AspireCliShellCommandHelpers.QuoteBashArg(templateName)} " + 357$"--name {AspireCliShellCommandHelpers.QuoteBashArg(projectName)} " + 358$"--output {AspireCliShellCommandHelpers.QuoteBashArg(output)}" + 525var localDirPrScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli-pr.sh")); 538var getAspireCliScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli.sh")); 635$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"test={testName}")}; " + 636$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"mode={strategy.Mode}")}; " + 637$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"strategy={strategy}")}; " + 638$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"expected={requestedVersion}")}; " + 668await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter); 878var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : ""; 1082var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : "";
Helpers\HungCommandDiagnosticsTests.cs (2)
31await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(workspace.FullName)}", counter); 38await auto.RunCommandAsync($"export HOME={AspireCliShellCommandHelpers.QuoteBashArg(home)}", counter);
Helpers\SecretInputTestHelpers.cs (3)
27var containerValuePath = AspireCliShellCommandHelpers.QuoteBashArg(CliE2ETestHelpers.ToContainerPath(valuePath, workspace)); 28var containerSourcePath = AspireCliShellCommandHelpers.QuoteBashArg(CliE2ETestHelpers.ToContainerPath(sourcePath, workspace)); 29var containerPatternsPath = AspireCliShellCommandHelpers.QuoteBashArg(CliE2ETestHelpers.ToContainerPath(patternsPath, workspace));
Helpers\ViteTestHelpers.cs (2)
23return $"npm create -y {AspireCliShellCommandHelpers.QuoteBashArg($"vite@{version}")} {AspireCliShellCommandHelpers.QuoteBashArg(projectDirectory)} -- --template vanilla-ts --no-interactive";
McpDocsE2ETests.cs (4)
343var quotedPrefix = AspireCliShellCommandHelpers.QuoteBashArg(installPrefix); 344var prScript = $"bash {AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(scriptsDir, "get-aspire-cli-pr.sh"))}"; 345var installScript = $"bash {AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(scriptsDir, "get-aspire-cli.sh"))}"; 358$"{AspireCliShellCommandHelpers.GetInstallScriptCommand(strategy, installScript)} --install-path {AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(installPrefix, "bin"))} {isolatedInstallArgs}",
StartStopTests.cs (13)
99await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 235await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 249$"git worktree add {AspireCliShellCommandHelpers.QuoteBashArg(linkedWorktreeRelativePath)} -b linked-worktree", 251await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 261$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(bothInstancesContainerPath)}", 278await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter); 281$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(remainingInstanceContainerPath)}", 290await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 294$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(restartedInstanceContainerPath)}", 306$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(stoppedInstancesContainerPath)}", 365await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 410await auto.TypeAsync($"python3 {AspireCliShellCommandHelpers.QuoteBashArg(containerAssertionScript)}"); 589var quotedProjectName = AspireCliShellCommandHelpers.QuoteBashArg(projectName);
tests\Shared\CliInstallStrategy.cs (7)
89return $"mkdir -p ~/.aspire && tar -xzf {QuoteBashArg(archivePath)} -C ~/.aspire 2>/dev/null"; 133return $"{commandPrefix} --local-dir {QuoteBashArg(localDir)}"; 145return $"curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/{sha}/eng/scripts/get-aspire-cli-pr.sh | bash -s -- --local-dir {QuoteBashArg(localDir)}"; 169$"PKG={QuoteBashArg(packageId)}; " + 170$"TARGET={QuoteBashArg(projectPath)}; " + 195args += $" --add-source {QuoteBashArg(nupkgSourcePath)}"; 200args += $" --configfile {QuoteBashArg(nuGetConfigPath)}";
tests\Shared\Hex1bAutomatorTestHelpers.cs (1)
303await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(workspacePath)}", counter);