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")} " +
494
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(containerProject)}", counter);
596
$"jq -e --argjson expected {AspireCliShellCommandHelpers.
QuoteBashArg
(expectedClaudeUserSettingsAfterProjectSetup.ToJsonString())} " +
AppHostSyntaxErrorOutputTests.cs (1)
141
var quotedWorkingDirectory = AspireCliShellCommandHelpers.
QuoteBashArg
(workingDirectory);
BundleSmokeTests.cs (4)
96
var quotedAppHostProjectPath = AspireCliShellCommandHelpers.
QuoteBashArg
(appHostProjectRelativePath);
168
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(ProjectName)}", counter);
193
$"dotnet run --no-launch-profile --project {AspireCliShellCommandHelpers.
QuoteBashArg
(appHostProjectRelativePath)} -- --from-real-dnx");
260
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(projectName)}", counter);
CompletionTests.cs (1)
101
await auto.RunCommandAsync($"export COMPLETION_TEST_VALUE={AspireCliShellCommandHelpers.
QuoteBashArg
(candidate)}", counter);
Helpers\CliE2EAutomatorHelpers.cs (15)
126
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(containerWorkspace)}", counter);
128
await 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)}" +
525
var localDirPrScript = AspireCliShellCommandHelpers.
QuoteBashArg
(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli-pr.sh"));
538
var 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}")}; " +
668
await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.
QuoteBashArg
(workspace.WorkspaceRoot.FullName)}", counter);
878
var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.
QuoteBashArg
(apphost)}" : "";
1082
var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.
QuoteBashArg
(apphost)}" : "";
Helpers\HungCommandDiagnosticsTests.cs (2)
31
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(workspace.FullName)}", counter);
38
await auto.RunCommandAsync($"export HOME={AspireCliShellCommandHelpers.
QuoteBashArg
(home)}", counter);
Helpers\SecretInputTestHelpers.cs (3)
27
var containerValuePath = AspireCliShellCommandHelpers.
QuoteBashArg
(CliE2ETestHelpers.ToContainerPath(valuePath, workspace));
28
var containerSourcePath = AspireCliShellCommandHelpers.
QuoteBashArg
(CliE2ETestHelpers.ToContainerPath(sourcePath, workspace));
29
var containerPatternsPath = AspireCliShellCommandHelpers.
QuoteBashArg
(CliE2ETestHelpers.ToContainerPath(patternsPath, workspace));
Helpers\ViteTestHelpers.cs (2)
23
return $"npm create -y {AspireCliShellCommandHelpers.
QuoteBashArg
($"vite@{version}")} {AspireCliShellCommandHelpers.
QuoteBashArg
(projectDirectory)} -- --template vanilla-ts --no-interactive";
McpDocsE2ETests.cs (4)
343
var quotedPrefix = AspireCliShellCommandHelpers.
QuoteBashArg
(installPrefix);
344
var prScript = $"bash {AspireCliShellCommandHelpers.
QuoteBashArg
(Path.Combine(scriptsDir, "get-aspire-cli-pr.sh"))}";
345
var 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)
99
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(projectName)}", counter);
235
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(projectName)}", counter);
249
$"git worktree add {AspireCliShellCommandHelpers.
QuoteBashArg
(linkedWorktreeRelativePath)} -b linked-worktree",
251
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(linkedCheckout)}", counter);
261
$"aspire ps --format json > {AspireCliShellCommandHelpers.
QuoteBashArg
(bothInstancesContainerPath)}",
278
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(primaryCheckout)}", counter);
281
$"aspire ps --format json > {AspireCliShellCommandHelpers.
QuoteBashArg
(remainingInstanceContainerPath)}",
290
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(linkedCheckout)}", counter);
294
$"aspire ps --format json > {AspireCliShellCommandHelpers.
QuoteBashArg
(restartedInstanceContainerPath)}",
306
$"aspire ps --format json > {AspireCliShellCommandHelpers.
QuoteBashArg
(stoppedInstancesContainerPath)}",
365
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(projectName)}", counter);
410
await auto.TypeAsync($"python3 {AspireCliShellCommandHelpers.
QuoteBashArg
(containerAssertionScript)}");
589
var quotedProjectName = AspireCliShellCommandHelpers.
QuoteBashArg
(projectName);
tests\Shared\CliInstallStrategy.cs (7)
89
return $"mkdir -p ~/.aspire && tar -xzf {
QuoteBashArg
(archivePath)} -C ~/.aspire 2>/dev/null";
133
return $"{commandPrefix} --local-dir {
QuoteBashArg
(localDir)}";
145
return $"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)}; " +
195
args += $" --add-source {
QuoteBashArg
(nupkgSourcePath)}";
200
args += $" --configfile {
QuoteBashArg
(nuGetConfigPath)}";
tests\Shared\Hex1bAutomatorTestHelpers.cs (1)
303
await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.
QuoteBashArg
(workspacePath)}", counter);