69 references to AspireCliShellCommandHelpers
Aspire.Cli.EndToEnd.Tests (69)
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"); 247await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter);
CompletionTests.cs (1)
101await auto.RunCommandAsync($"export COMPLETION_TEST_VALUE={AspireCliShellCommandHelpers.QuoteBashArg(candidate)}", counter);
EntityFrameworkCoreDeploymentTests.cs (1)
111await 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); 161AspireCliShellCommandHelpers.GetPullRequestInstallCommand(prNumber, AspireCliShellCommandHelpers.DockerPullRequestInstallCommandPrefix), 169AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand("/tmp/aspire-cli-archives", AspireCliShellCommandHelpers.DockerPullRequestInstallCommandPrefix), 181AspireCliShellCommandHelpers.GetInstallScriptCommand(strategy, AspireCliShellCommandHelpers.DockerInstallScriptCommandPrefix), 190AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy), 288: $" --channel {AspireCliShellCommandHelpers.QuoteBashArg(channel)}"; 292$"aspire new {AspireCliShellCommandHelpers.QuoteBashArg(templateName)} " + 293$"--name {AspireCliShellCommandHelpers.QuoteBashArg(projectName)} " + 294$"--output {AspireCliShellCommandHelpers.QuoteBashArg(output)}" + 461var localDirPrScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli-pr.sh")); 463AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand(archiveDir, $"bash {localDirPrScript}"), 474var getAspireCliScript = AspireCliShellCommandHelpers.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli.sh")); 476AspireCliShellCommandHelpers.GetInstallScriptCommand(strategy, $"bash {getAspireCliScript}"), 571$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"test={testName}")}; " + 572$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"mode={strategy.Mode}")}; " + 573$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"strategy={strategy}")}; " + 574$"printf '%s\\n' {AspireCliShellCommandHelpers.QuoteBashArg($"expected={requestedVersion}")}; " + 604await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={AspireCliShellCommandHelpers.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter); 624var command = AspireCliShellCommandHelpers.GetPullRequestInstallCommand(prNumber, AspireCliShellCommandHelpers.MainPullRequestInstallCommandPrefix); 711$"export PATH=~/.dotnet/tools:$PATH {AspireCliShellCommandHelpers.CommonAspireEnvironmentAssignments}", 759var command = AspireCliShellCommandHelpers.GetInstallScriptCommand( 761AspireCliShellCommandHelpers.MainInstallScriptCommandPrefix); 799var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : ""; 1003var apphostFlag = apphost is not null ? $" --apphost {AspireCliShellCommandHelpers.QuoteBashArg(apphost)}" : "";
Helpers\CliInstallStrategyTests.cs (10)
15Assert.Equal("123", AspireCliShellCommandHelpers.GetPullRequestInstallArgs(123)); 21var command = AspireCliShellCommandHelpers.GetLocalArchiveInstallCommand("/tmp/cli-archives", "/opt/aspire-scripts/get-aspire-cli-pr.sh"); 30var command = AspireCliShellCommandHelpers.GetLocalArchiveInstallCommandFromCurrentRef("/tmp/cli-archives"); 45AspireCliShellCommandHelpers.GetConfigureLocalHiveCommands()); 696var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 705var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 718var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 732var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 741var command = AspireCliShellCommandHelpers.GetDotnetToolInstallCommandInDocker(strategy); 749var command = AspireCliShellCommandHelpers.GetDotnetAddPackageCommand("K8sDeployTest.ApiService", "Aspire.StackExchange.Redis");
Helpers\KubernetesDeployTestHelpers.cs (1)
356await auto.TypeAsync(AspireCliShellCommandHelpers.GetDotnetAddPackageCommand($"{projectName}.ApiService", package));
Helpers\ViteTestHelpers.cs (2)
23return $"npm create -y {AspireCliShellCommandHelpers.QuoteBashArg($"vite@{version}")} {AspireCliShellCommandHelpers.QuoteBashArg(projectDirectory)} -- --template vanilla-ts --no-interactive";
StartStopTests.cs (12)
99await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 224await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 240$"git worktree add {AspireCliShellCommandHelpers.QuoteBashArg(linkedWorktreeRelativePath)} -b linked-worktree", 242await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 246$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(bothInstancesContainerPath)}", 263await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(primaryCheckout)}", counter); 266$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(remainingInstanceContainerPath)}", 275await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(linkedCheckout)}", counter); 278$"aspire ps --format json > {AspireCliShellCommandHelpers.QuoteBashArg(stoppedInstancesContainerPath)}", 337await auto.RunCommandAsync($"cd {AspireCliShellCommandHelpers.QuoteBashArg(projectName)}", counter); 382await auto.TypeAsync($"python3 {AspireCliShellCommandHelpers.QuoteBashArg(containerAssertionScript)}"); 561var 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,