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