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