Skip to content

Commit fcc2740

Browse files
Update
1 parent 9306083 commit fcc2740

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

PSWriteColor.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Przemyslaw Klys
55
#
6-
# Generated on: 19.06.2020
6+
# Generated on: 20.07.2020
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'PSWriteColor.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.87.1'
15+
ModuleVersion = '0.87.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Desktop', 'Core'

Public/Write-Color.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Write-Color {
8181
if ($LinesBefore -ne 0) { for ($i = 0; $i -lt $LinesBefore; $i++) { Write-Host -Object "`n" -NoNewline } } # Add empty line before
8282
if ($StartTab -ne 0) { for ($i = 0; $i -lt $StartTab; $i++) { Write-Host -Object "`t" -NoNewline } } # Add TABS before text
8383
if ($StartSpaces -ne 0) { for ($i = 0; $i -lt $StartSpaces; $i++) { Write-Host -Object ' ' -NoNewline } } # Add SPACES before text
84-
if ($ShowTime) { Write-Host -Object "[$([datetime]::Now.ToString($DateTimeFormat))]" -NoNewline } # Add Time before output
84+
if ($ShowTime) { Write-Host -Object "[$([datetime]::Now.ToString($DateTimeFormat))] " -NoNewline } # Add Time before output
8585
if ($Text.Count -ne 0) {
8686
if ($Color.Count -ge $Text.Count) {
8787
# the real deal coloring
@@ -110,7 +110,7 @@ function Write-Color {
110110
}
111111
try {
112112
if ($LogTime) {
113-
"[$([datetime]::Now.ToString($DateTimeFormat))]$TextToFile" | Out-File -FilePath $LogFile -Encoding $Encoding -Append -ErrorAction Stop
113+
"[$([datetime]::Now.ToString($DateTimeFormat))] $TextToFile" | Out-File -FilePath $LogFile -Encoding $Encoding -Append -ErrorAction Stop
114114
} else {
115115
"$TextToFile" | Out-File -FilePath $LogFile -Encoding $Encoding -Append -ErrorAction Stop
116116
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Write-Color is a wrapper around Write-Host allowing you to create nice looking s
2727

2828
## ChangeLog
2929

30+
- 0.87.2 - 2020.07.20
31+
- [x] Added a space for LogTime and ShowTime
32+
- [x] Signed module
3033
- 0.87.1 - 2020.06.19
3134
- [x] Resolves issue with nuget download (changed version from 0.87 to 0.87.1). As per [link](https://devblogs.microsoft.com/devops/versioning-nuget-packages-cd-1/) it requires version to be longer.
3235
- 0.87.0 - 2020.01.12

0 commit comments

Comments
 (0)