Add one-command dev-to-prod release with clear SUCCESS/FAILED banners.
Introduce devtoprod:release orchestrator, config file, CLI result footers on deploy scripts, auto-thumb regeneration on curator fixes, and updated deploy documentation. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
313666a4ab
commit
21e3e41e48
@@ -0,0 +1,29 @@
|
||||
# Standardized final SUCCESS/FAILED banner for deploy PowerShell scripts.
|
||||
$script:DeployCliResultWidth = 72
|
||||
|
||||
function Write-DeployCliResult {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Script,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[bool]$Success,
|
||||
|
||||
[string]$Summary = '',
|
||||
|
||||
[string[]]$Details = @()
|
||||
)
|
||||
|
||||
$label = if ($Success) { 'SUCCESS' } else { 'FAILED' }
|
||||
$banner = "===== ${label}: $Script ====="
|
||||
$pad = [Math]::Max(0, $script:DeployCliResultWidth - $banner.Length)
|
||||
$line = $banner + ('=' * $pad)
|
||||
|
||||
Write-Host ''
|
||||
Write-Host $line
|
||||
if ($Summary) { Write-Host $Summary }
|
||||
foreach ($detail in $Details) {
|
||||
if ($detail) { Write-Host $detail }
|
||||
}
|
||||
Write-Host ('=' * $script:DeployCliResultWidth)
|
||||
}
|
||||
Reference in New Issue
Block a user