This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 2.12.1 - 2020-05-05 * Miscellaneous * Fixed: `Watch-Stack` colorization bleed on BackgroundColor changes * Fixed: `Watch-Stack` now exits when all stacks are in a stable state, not early if one stack stablizes before the rest.
- Loading branch information
Showing
329 changed files
with
1,769 additions
and
1,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,75 @@ | ||
function Colorize { | ||
Param | ||
( | ||
[parameter(Mandatory = $false,Position = 0,ValueFromPipeline = $true)] | ||
[parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true)] | ||
[String[]] | ||
$Strings | ||
) | ||
|
||
Process { | ||
foreach ($row in $Strings) { | ||
if ($row -like "*STACK NAME *" -or $row -like "*REFRESH *") { | ||
Write-Host -ForegroundColor Black -BackgroundColor Cyan $row | ||
$hostParams = @{ | ||
Object = $row | ||
NoNewLine = $true | ||
} | ||
elseif ($row -like "*_FAILED*") { | ||
Write-Host -ForegroundColor Black -BackgroundColor Red $row | ||
} | ||
elseif ($row -like "*REVIEW_IN_PROGRESS*") { | ||
Write-Host -ForegroundColor Black -BackgroundColor Gray $row | ||
} | ||
elseif ($row -like "*ROLLBACK_IN_PROGRESS*") { | ||
Write-Host -ForegroundColor Cyan $row | ||
} | ||
elseif ($row -like "*ROLLBACK_COMPLETE*") { | ||
Write-Host -BackgroundColor Cyan -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "*UPDATE_IN_PROGRESS*") { | ||
Write-Host -ForegroundColor Green $row | ||
} | ||
elseif ($row -like "*UPDATE_COMPLETE*") { | ||
Write-Host -BackgroundColor Green -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "*CREATE_IN_PROGRESS*") { | ||
Write-Host -ForegroundColor Green $row | ||
} | ||
elseif ($row -like "*CREATE_COMPLETE*") { | ||
Write-Host -BackgroundColor Green -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "*DELETE_IN_PROGRESS*") { | ||
Write-Host -ForegroundColor Yellow $row | ||
} | ||
elseif ($row -like "*DELETE_COMPLETE*") { | ||
Write-Host -BackgroundColor Yellow -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "*DELETE_SKIPPED*") { | ||
Write-Host -BackgroundColor Magenta -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "*DELETE_SKIPPED*") { | ||
Write-Host -BackgroundColor Magenta -ForegroundColor Black $row | ||
} | ||
elseif ($row -like "Timestamp*" -or $row -like "---------*") { | ||
Write-Host $row | ||
} | ||
else { | ||
Write-Host $row | ||
switch -Regex -CaseSensitive ($row) { | ||
"(STACK NAME|REFRESH)" { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Cyan' | ||
} | ||
"_FAILED" { | ||
if ($row -match 'AWS::CloudFormation::Stack') { | ||
$hostParams['ForegroundColor'] = 'White' | ||
$hostParams['BackgroundColor'] = 'DarkRed' | ||
} | ||
else { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Red' | ||
} | ||
} | ||
"REVIEW_IN_PROGRESS" { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Red' | ||
} | ||
"ROLLBACK_IN_PROGRESS" { | ||
$hostParams['ForegroundColor'] = 'Cyan' | ||
} | ||
"ROLLBACK_COMPLETE" { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Cyan' | ||
} | ||
"(UPDATE_IN_PROGRESS|CREATE_IN_PROGRESS|IMPORT_IN_PROGRESS)" { | ||
if ($row -match 'AWS::CloudFormation::Stack') { | ||
$hostParams['ForegroundColor'] = 'White' | ||
$hostParams['BackgroundColor'] = 'DarkMagenta' | ||
} | ||
else { | ||
$hostParams['ForegroundColor'] = 'Green' | ||
} | ||
} | ||
"(UPDATE_COMPLETE|CREATE_COMPLETE|IMPORT_COMPLETE)" { | ||
if ($row -match 'AWS::CloudFormation::Stack') { | ||
$hostParams['ForegroundColor'] = 'White' | ||
$hostParams['BackgroundColor'] = 'DarkGreen' | ||
} | ||
else { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Green' | ||
} | ||
} | ||
"DELETE_IN_PROGRESS" { | ||
$hostParams['ForegroundColor'] = 'Yellow' | ||
} | ||
"DELETE_COMPLETE" { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Yellow' | ||
} | ||
"DELETE_SKIPPED" { | ||
$hostParams['ForegroundColor'] = 'Black' | ||
$hostParams['BackgroundColor'] = 'Magenta' | ||
} | ||
} | ||
Write-Host @hostParams | ||
Write-Host '' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
VaporShell/Public/Resource Property Types/Add-VSApiGatewayV2IntegrationTlsConfig.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
VaporShell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeBackendDefaults.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
VaporShell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeClientPolicy.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
VaporShell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeClientPolicyTls.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
VaporShell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeListenerTls.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...hell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeListenerTlsAcmCertificate.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
VaporShell/Public/Resource Property Types/Add-VSAppMeshVirtualNodeListenerTlsCertificate.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.