63 references to AspireCliShellCommandHelpers
Aspire.Cli.EndToEnd.Tests (63)
AppHostSyntaxErrorOutputTests.cs (1)
141var quotedWorkingDirectory = AspireCliShellCommandHelpers.QuoteBashArg(workingDirectory);
BundleSmokeTests.cs (4)
89var quotedAppHostProjectPath = AspireCliShellCommandHelpers.QuoteBashArg(appHostProjectRelativePath); 161await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(ProjectName)}", counter); 186$"dotnet run --no-launch-profile --project {AspireCliShellCommandHelpers.QuoteBashArg(appHostProjectRelativePath)} -- --from-real-dnx"); 245await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
EntityFrameworkCoreDeploymentTests.cs (1)
107await auto.TypeAsync(AspireCliShellCommandHelpers.GetDotnetAddPackageCommand(
Helpers\CliE2EAutomatorHelpers.cs (31)
70await auto.TypeAsync(AspireCliShellCommandHelpers.NumberedPromptSetupCommand); 78await auto.RunCommandAsync(AspireCliShellCommandHelpers.GetPrepareAspireEnvironmentCommand(), counter); 89await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 91await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(containerWorkspace)}", counter); 137AspireCliShellCommandHelpers.GetPullRequestInstallCommand(prNumber, AspireCliShellCommandHelpers.DockerPullRequestInstallCommandPrefix), 145AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand("/tmp/aspire-cli-archives", AspireCliShellCommandHelpers.DockerPullRequestInstallCommandPrefix), 153AspireCliShellCommandHelpers.GetInstallScriptCommand(strategy, AspireCliShellCommandHelpers.DockerInstallScriptCommandPrefix), 162AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy), 260: $" --channel {AspireCliShellCommandHelpers.QuoteBashArg(channel)}"; 264$"aspire new {AspireCliShellCommandHelpers.QuoteBashArg(templateName)} " + 265$"--name {AspireCliShellCommandHelpers.QuoteBashArg(projectName)} " + 266$"--output {AspireCliShellCommandHelpers.QuoteBashArg(output)}" + 433var localDirPrScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli-pr.sh")); 435AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand(archiveDir, $"bash {localDirPrScript}"), 442var getAspireCliScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli.sh")); 444AspireCliShellCommandHelpers.GetInstallScriptCommand(strategy, $"bash {getAspireCliScript}"), 539$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"test={testName}")}; " + 540$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"mode={strategy.Mode}")}; " + 541$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"strategy={strategy}")}; " + 542$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"expected={requestedVersion}")}; " + 572await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter); 597var command = AspireCliShellCommandHelpers.GetPullRequestInstallCommand(prNumber, AspireCliShellCommandHelpers.MainPullRequestInstallCommandPrefix); 684$"export PATH=~/.dotnet/tools:$PATH {AspireCliShellCommandHelpers.CommonAspireEnvironmentAssignments}", 732var command = AspireCliShellCommandHelpers.GetInstallScriptCommand( 734AspireCliShellCommandHelpers.MainInstallScriptCommandPrefix); 772var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : ""; 947var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : "";
Helpers\CliInstallStrategyTests.cs (8)
15Assert.Equal("123", AspireCliShellCommandHelpers.GetPullRequestInstallArgs(123)); 21var command = AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand("/tmp/cli-archives", "/opt/aspire-scripts/get-aspire-cli-pr.sh"); 673var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 682var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 695var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 709var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 718var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 726var command = AspireCliShellCommandHelpers.GetDotnetAddPackageCommand("K8sDeployTest.ApiService", "Aspire.StackExchange.Redis");
Helpers\KubernetesDeployTestHelpers.cs (1)
330await auto.TypeAsync(AspireCliShellCommandHelpers.GetDotnetAddPackageCommand($"{projectName}.ApiService", package));
StartStopTests.cs (11)
130await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 146$"git worktree add {AspireCliShellCommandHelpers.QuoteBashArg(linkedWorktreeRelativePath)} -b linked-worktree", 148await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 152$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(bothInstancesContainerPath)}", 169await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter); 172$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(remainingInstanceContainerPath)}", 181await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 184$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(stoppedInstancesContainerPath)}", 243await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 288await auto.TypeAsync($"python3 {AspireCliShellCommandHelpers.QuoteBashArg(containerAssertionScript)}"); 467var quotedProjectName = AspireCliShellCommandHelpers.QuoteBashArg(projectName);
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,