69 references to AspireCliShellCommandHelpers
Aspire.Cli.EndToEnd.Tests (69)
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);
CompletionTests.cs (1)
101
await auto.RunCommandAsync($"export COMPLETION_TEST_VALUE={
AspireCliShellCommandHelpers
.QuoteBashArg(candidate)}", 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);
132
AspireCliShellCommandHelpers
.GetPullRequestInstallCommand(prNumber,
AspireCliShellCommandHelpers
.DockerPullRequestInstallCommandPrefix),
140
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand("/tmp/aspire-cli-archives",
AspireCliShellCommandHelpers
.DockerPullRequestInstallCommandPrefix),
152
AspireCliShellCommandHelpers
.GetInstallScriptCommand(strategy,
AspireCliShellCommandHelpers
.DockerInstallScriptCommandPrefix),
161
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy),
259
: $" --channel {
AspireCliShellCommandHelpers
.QuoteBashArg(channel)}";
263
$"aspire new {
AspireCliShellCommandHelpers
.QuoteBashArg(templateName)} " +
264
$"--name {
AspireCliShellCommandHelpers
.QuoteBashArg(projectName)} " +
265
$"--output {
AspireCliShellCommandHelpers
.QuoteBashArg(output)}" +
432
var localDirPrScript =
AspireCliShellCommandHelpers
.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli-pr.sh"));
434
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand(archiveDir, $"bash {localDirPrScript}"),
445
var getAspireCliScript =
AspireCliShellCommandHelpers
.QuoteBashArg(Path.Combine(CliE2ETestHelpers.GetRepoRoot(), "eng", "scripts", "get-aspire-cli.sh"));
447
AspireCliShellCommandHelpers
.GetInstallScriptCommand(strategy, $"bash {getAspireCliScript}"),
542
$"printf '%s\\n' {
AspireCliShellCommandHelpers
.QuoteBashArg($"test={testName}")}; " +
543
$"printf '%s\\n' {
AspireCliShellCommandHelpers
.QuoteBashArg($"mode={strategy.Mode}")}; " +
544
$"printf '%s\\n' {
AspireCliShellCommandHelpers
.QuoteBashArg($"strategy={strategy}")}; " +
545
$"printf '%s\\n' {
AspireCliShellCommandHelpers
.QuoteBashArg($"expected={requestedVersion}")}; " +
575
await auto.RunCommandAsync($"export ASPIRE_E2E_WORKSPACE={
AspireCliShellCommandHelpers
.QuoteBashArg(workspace.WorkspaceRoot.FullName)}", counter);
595
var command =
AspireCliShellCommandHelpers
.GetPullRequestInstallCommand(prNumber,
AspireCliShellCommandHelpers
.MainPullRequestInstallCommandPrefix);
682
$"export PATH=~/.dotnet/tools:$PATH {
AspireCliShellCommandHelpers
.CommonAspireEnvironmentAssignments}",
730
var command =
AspireCliShellCommandHelpers
.GetInstallScriptCommand(
732
AspireCliShellCommandHelpers
.MainInstallScriptCommandPrefix);
770
var apphostFlag = apphost is not null ? $" --apphost {
AspireCliShellCommandHelpers
.QuoteBashArg(apphost)}" : "";
974
var apphostFlag = apphost is not null ? $" --apphost {
AspireCliShellCommandHelpers
.QuoteBashArg(apphost)}" : "";
Helpers\CliInstallStrategyTests.cs (10)
15
Assert.Equal("123",
AspireCliShellCommandHelpers
.GetPullRequestInstallArgs(123));
21
var command =
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommand("/tmp/cli-archives", "/opt/aspire-scripts/get-aspire-cli-pr.sh");
30
var command =
AspireCliShellCommandHelpers
.GetLocalArchiveInstallCommandFromCurrentRef("/tmp/cli-archives");
45
AspireCliShellCommandHelpers
.GetConfigureLocalHiveCommands());
696
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
705
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
718
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
732
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
741
var command =
AspireCliShellCommandHelpers
.GetDotnetToolInstallCommandInDocker(strategy);
749
var command =
AspireCliShellCommandHelpers
.GetDotnetAddPackageCommand("K8sDeployTest.ApiService", "Aspire.StackExchange.Redis");
Helpers\KubernetesDeployTestHelpers.cs (1)
339
await auto.TypeAsync(
AspireCliShellCommandHelpers
.GetDotnetAddPackageCommand($"{projectName}.ApiService", package));
Helpers\ViteTestHelpers.cs (2)
23
return $"npm create -y {
AspireCliShellCommandHelpers
.QuoteBashArg($"vite@{version}")} {
AspireCliShellCommandHelpers
.QuoteBashArg(projectDirectory)} -- --template vanilla-ts --no-interactive";
StartStopTests.cs (12)
99
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(projectName)}", counter);
224
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(projectName)}", counter);
240
$"git worktree add {
AspireCliShellCommandHelpers
.QuoteBashArg(linkedWorktreeRelativePath)} -b linked-worktree",
242
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(linkedCheckout)}", counter);
246
$"aspire ps --format json > {
AspireCliShellCommandHelpers
.QuoteBashArg(bothInstancesContainerPath)}",
263
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(primaryCheckout)}", counter);
266
$"aspire ps --format json > {
AspireCliShellCommandHelpers
.QuoteBashArg(remainingInstanceContainerPath)}",
275
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(linkedCheckout)}", counter);
278
$"aspire ps --format json > {
AspireCliShellCommandHelpers
.QuoteBashArg(stoppedInstancesContainerPath)}",
337
await auto.RunCommandAsync($"cd {
AspireCliShellCommandHelpers
.QuoteBashArg(projectName)}", counter);
382
await auto.TypeAsync($"python3 {
AspireCliShellCommandHelpers
.QuoteBashArg(containerAssertionScript)}");
561
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,