93 references to AspireCliShellCommandHelpers
Aspire.Cli.EndToEnd.Tests (93)
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);
E2ETelemetryTests.cs (1)
34
await auto.TypeAsync(
AspireCliShellCommandHelpers
.NumberedPromptSetupCommand);
EntityFrameworkCoreDeploymentTests.cs (1)
111
await auto.TypeAsync(
AspireCliShellCommandHelpers
.GetDotnetAddPackageCommand(
Helpers\CliE2EAutomatorHelpers.cs (31)
102
await auto.TypeAsync(
AspireCliShellCommandHelpers
.NumberedPromptSetupCommand);
110
await auto.RunCommandAsync(
AspireCliShellCommandHelpers
.GetPrepareAspireEnvironmentCommand(), counter);
126
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(containerWorkspace)}", counter);
128
await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={
AspireCliShellCommandHelpers
.QuoteBashArg(containerWorkspace)}", counter);
198
AspireCliShellCommandHelpers
.GetPullRequestInstallCommand(prNumber,
AspireCliShellCommandHelpers
.DockerPullRequestInstallCommandPrefix),
206
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand("/tmp/aspire-cli-archives",
AspireCliShellCommandHelpers
.DockerPullRequestInstallCommandPrefix),
218
AspireCliShellCommandHelpers
.GetInstallScriptCommand(strategy,
AspireCliShellCommandHelpers
.DockerInstallScriptCommandPrefix),
227
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy),
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"));
527
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand(archiveDir, $"bash {localDirPrScript}"),
538
var getAspireCliScript =
AspireCliShellCommandHelpers
.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli.sh"));
540
AspireCliShellCommandHelpers
.GetInstallScriptCommand(strategy, $"bash {getAspireCliScript}"),
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);
688
var command =
AspireCliShellCommandHelpers
.GetPullRequestInstallCommand(prNumber,
AspireCliShellCommandHelpers
.MainPullRequestInstallCommandPrefix);
775
$"export PATH=~/.dotnet/tools:$PATH {
AspireCliShellCommandHelpers
.CommonAspireEnvironmentAssignments}",
838
var command =
AspireCliShellCommandHelpers
.GetInstallScriptCommand(
840
AspireCliShellCommandHelpers
.MainInstallScriptCommandPrefix);
878
var apphostFlag = apphost is not null ? $" --apphost {
AspireCliShellCommandHelpers
.QuoteBashArg(apphost)}" : "";
1082
var apphostFlag = apphost is not null ? $" --apphost {
AspireCliShellCommandHelpers
.QuoteBashArg(apphost)}" : "";
Helpers\CliInstallStrategyTests.cs (10)
37
Assert.Equal("123",
AspireCliShellCommandHelpers
.GetPullRequestInstallArgs(123));
43
var command =
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand("/tmp/cli-archives", "/opt/aspire-scripts/get-aspire-cli-pr.sh");
52
var command =
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommandFromCurrentRef("/tmp/cli-archives");
67
AspireCliShellCommandHelpers
.GetConfigureLocalHiveCommands());
794
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
803
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
816
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
830
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
839
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
847
var command =
AspireCliShellCommandHelpers
.GetDotnetAddPackageCommand("K8sDeployTest.ApiService", "Aspire.StackExchange.Redis");
Helpers\HungCommandDiagnosticsTests.cs (3)
30
await auto.RunCommandAsync(
AspireCliShellCommandHelpers
.NumberedPromptSetupCommand, counter);
31
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(workspace.FullName)}", counter);
38
await auto.RunCommandAsync($"export HOME={
AspireCliShellCommandHelpers
.QuoteBashArg(home)}", counter);
Helpers\KubernetesDeployTestHelpers.cs (1)
421
await auto.TypeAsync(
AspireCliShellCommandHelpers
.GetDotnetAddPackageCommand($"{projectName}.ApiService", package));
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 (7)
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"))}";
354
$"{
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand(strategy.ArchiveDir!, prScript)} --install-path {quotedPrefix} {isolatedPrInstallArgs}",
358
$"{
AspireCliShellCommandHelpers
.GetInstallScriptCommand(strategy, installScript)} --install-path {
AspireCliShellCommandHelpers
.QuoteBashArg(Path.Combine(installPrefix, "bin"))} {isolatedInstallArgs}",
367
$"{
AspireCliShellCommandHelpers
.GetPullRequestInstallCommand(prNumber, prScript)} --install-path {quotedPrefix} {isolatedPrInstallArgs}",
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\E2ETelemetryEnvironmentTests.cs (1)
23
AspireCliShellCommandHelpers
.GetSourceAspireEnvironmentCommand(includeBundlePath) +
tests\Shared\Hex1bAutomatorTestHelpers.cs (6)
299
await auto.TypeAsync(
AspireCliShellCommandHelpers
.NumberedPromptSetupCommand);
303
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(workspacePath)}", counter);
315
AspireCliShellCommandHelpers
.GetExtractLocalHiveArchiveCommand(archivePath),
327
foreach (var command in
AspireCliShellCommandHelpers
.GetConfigureLocalHiveCommands())
342
AspireCliShellCommandHelpers
.GetSourceAspireEnvironmentCommand(includeBundlePath),
355
AspireCliShellCommandHelpers
.AspireCliVersionCommand,