Skip to content

Commit a690f68

Browse files
committed
eng/scripts/get-aspire-cli.ps1: Shared block of code
- Group shared helper functions into a clearly marked shared block - No behavior changes; function signatures preserved - Align help text default path with ~/.aspire
1 parent a007526 commit a690f68

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

eng/scripts/get-aspire-cli.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Pass a specific version to get CLI for that version.
1818
1919
.PARAMETER InstallPath
20-
Directory to install the CLI (default: %USERPROFILE%\.aspire\bin on Windows, `$HOME/.aspire/bin on Unix)
20+
Directory to install the CLI (default: %USERPROFILE%\.aspire on Windows, `$HOME/.aspire on Unix)
2121
2222
.PARAMETER Version
2323
Version of the Aspire CLI to download (default: unset)
@@ -136,6 +136,10 @@ if ($PSVersionTable.PSVersion.Major -lt $Script:Config.MinimumPowerShellVersion)
136136
}
137137
}
138138

139+
# =====================
140+
# Shared helpers block
141+
# =====================
142+
139143
# Consolidated output function with fallback for platforms that don't support Write-Host
140144
function Write-Message {
141145
[CmdletBinding()]
@@ -558,6 +562,10 @@ function Invoke-SecureWebRequest {
558562
}
559563
}
560564

565+
# ==========================
566+
# End shared helpers block
567+
# ==========================
568+
561569
# Enhanced file download wrapper with validation
562570
function Invoke-FileDownload {
563571
[CmdletBinding()]

0 commit comments

Comments
 (0)