49 references to Quote
Aspire.Acquisition.Tests (49)
Scripts\CompletionScriptTests.cs (49)
29Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 30$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 31Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} 83New-Item -ItemType $linkType -Path '{{Quote(selected)}}' -Target '{{Quote(target)}}' -ErrorAction Stop | Out-Null 84$destination = '{{Quote(Path.Combine(selected, "completions", "aspire.ps1"))}}' 85if (-not (Test-CompletionPathWithinRoot -Path $destination -Root '{{Quote(selected)}}')) { 88New-Item -ItemType $linkType -Path '{{Quote(Path.Combine(target, "completions"))}}' -Target '{{Quote(outside)}}' -ErrorAction Stop | Out-Null 89if (Test-CompletionPathWithinRoot -Path $destination -Root '{{Quote(selected)}}') { 119var invocation = $"Install-AspireCliCompletions -CliPath '{Quote(cli)}'" + (dogfood ? "" : " -Persist $true"); 123Set-Variable HOME '{{Quote(home)}}' -Force 124$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 129if (-not (Test-Path -LiteralPath '{{Quote(completion)}}')) { throw 'Missing completion file' } 130{{(dogfood ? $". '{Quote(completion)}'" : $". '{Quote(profile)}'")}} 132Remove-Item -LiteralPath '{{Quote(completion)}}' 133{{(dogfood ? "" : $". '{Quote(profile)}'")}} 175Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 176$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 180Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} {{(mode == "whatif" ? "-WhatIf" : "")}} 210Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 211$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 213Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' -Persist $true 237var invocation = $"Install-AspireCliCompletions -CliPath '{Quote(cli)}'" + (dogfood ? "" : " -Persist $true"); 241Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 242$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 247. '{{Quote(completion)}}' 287Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 288$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 291[IO.Directory]::CreateDirectory('{{Quote(link)}}') | Out-Null 295New-Item -ItemType $linkType -Path '{{Quote(link)}}' -Target '{{Quote(outside)}}' -ErrorAction Stop | Out-Null 297Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} 329Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 330$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 332Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} -WhatIf 363Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 364$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 367Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} 395Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 396$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 398Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}} 423Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 424$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 426Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' -Persist $true 453Set-Variable HOME '{{Quote(env.MockHome)}}' -Force 454$PROFILE = @{ CurrentUserAllHosts = '{{Quote(profile)}}' } 456Install-AspireCliCompletions -CliPath '{{Quote(cli)}}' {{(dogfood ? "" : "-Persist $true")}}