Skip to content

Commit

Permalink
tools deploy enhanced summary message
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 14, 2024
1 parent 5c6f760 commit aacfa33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ function Show-DiffSummaryAndApprove {
[Parameter(Mandatory,
HelpMessage = 'Specifies the name of updated artifacts (used in the info message).')]
[ValidateNotNullOrEmpty()]
[ValidateSet('number of unit tests', 'versions', 'vcpkg port')]
[ValidateSet('Number of Unit Tests', 'Version Numbers', 'Vcpkg Port')]
[string]
$SummaryFor
)
Expand All @@ -1001,7 +1001,7 @@ function Show-DiffSummaryAndApprove {
git --no-pager diff --compact-summary $Path

NewLine
Write-Info "Please check updated $SummaryFor in SmartGit..."
Write-Info "Please check updated `e[35m$SummaryFor`e[32m in SmartGit..."
Approve-Continue -Exit
}

Expand Down Expand Up @@ -1584,7 +1584,7 @@ function Invoke-UpdateNumberOfUnitTests {

Edit-NumberOfUnitTestsInAllFiles

Show-DiffSummaryAndApprove -SummaryFor 'number of unit tests'
Show-DiffSummaryAndApprove -SummaryFor 'Number of Unit Tests'

NewLine
Write-Progress 'Committing updated number of unit tests...'
Expand Down Expand Up @@ -1631,7 +1631,7 @@ function Invoke-BumpVersions {
Edit-VersionNumbersInVersionHpp
Edit-VersionNumbersInAllFiles

Show-DiffSummaryAndApprove -SummaryFor versions
Show-DiffSummaryAndApprove -SummaryFor 'Version Numbers'

NewLine
Write-Progress 'Committing bumped version numbers...'
Expand Down Expand Up @@ -1715,7 +1715,7 @@ function Invoke-UpdateVcpkgPorts {
Remove-PortVersions
}

Show-DiffSummaryAndApprove -Path (Resolve-Path .\cmake\vcpkg) -SummaryFor 'vcpkg port'
Show-DiffSummaryAndApprove -Path (Resolve-Path .\cmake\vcpkg) -SummaryFor 'Vcpkg Port'

NewLine
Write-Progress 'Committing vcpkg REF and SHA512...'
Expand Down

0 comments on commit aacfa33

Please sign in to comment.