Skip to content

Commit 20c32cb

Browse files
committed
Improve clarity of console output
1 parent 538f311 commit 20c32cb

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Compile-SourceScript.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,16 @@ function Compile-SourceScript {
104104
"`nNewly compiled plugins:" | Write-Host -ForegroundColor Cyan
105105
$compiledDirItemsDiff | % {
106106
$compiledPluginHash = (Get-FileHash $_.FullName -Algorithm MD5).Hash
107-
" $($_.Name), $($_.LastWriteTime), $compiledPluginHash" | Write-Host -ForegroundColor Green
107+
" $($_.Name), $($_.LastWriteTime), $compiledPluginHash" | Write-Host -ForegroundColor White
108108
}
109109

110110
New-Item -Path $pluginsDir -ItemType Directory -Force | Out-Null
111111
$compiledDirItemsDiff | % {
112+
"`n$($_.Name):" | Write-Host -ForegroundColor Green
112113
if ($_.Basename -ne $script.Basename) {
113-
"`nThe scripts name does not match the compiled plugin's name." | Write-Host -ForegroundColor Magenta
114+
"The plugin's name does not match the specified script's name." | Write-Host -ForegroundColor Magenta
114115
return # continue in %
115116
}
116-
"`n$($_.Name):" | Write-Host -ForegroundColor Green
117117
$existingPlugin = Get-Item "$pluginsDir/$($_.Name)" -ErrorAction SilentlyContinue
118118
if (!$existingPlugin) {
119119
" Plugin does not currently exist in the plugins directory." | Write-Host -ForegroundColor Yellow

Modules/Compile-SourceScript/Compile-SourceScript.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ function Compile-SourceScript {
9696
"`nNewly compiled plugins:" | Write-Host -ForegroundColor Cyan
9797
$compiledDirItemsDiff | % {
9898
$compiledPluginHash = (Get-FileHash $_.FullName -Algorithm MD5).Hash
99-
" $($_.Name), $($_.LastWriteTime), $compiledPluginHash" | Write-Host -ForegroundColor Green
99+
" $($_.Name), $($_.LastWriteTime), $compiledPluginHash" | Write-Host -ForegroundColor White
100100
}
101101

102102
New-Item -Path $pluginsDir -ItemType Directory -Force | Out-Null
103103
$compiledDirItemsDiff | % {
104+
"`n$($_.Name):" | Write-Host -ForegroundColor Green
104105
if ($_.Basename -ne $script.Basename) {
105-
"`nThe scripts name does not match the compiled plugin's name." | Write-Host -ForegroundColor Magenta
106+
"The plugin's name does not match the specified script's name." | Write-Host -ForegroundColor Magenta
106107
return # continue in %
107108
}
108-
"`n$($_.Name):" | Write-Host -ForegroundColor Green
109109
$existingPlugin = Get-Item "$pluginsDir/$($_.Name)" -ErrorAction SilentlyContinue
110110
if (!$existingPlugin) {
111111
" Plugin does not currently exist in the plugins directory." | Write-Host -ForegroundColor Yellow

0 commit comments

Comments
 (0)