Skip to content

Commit 52af6dd

Browse files
committed
Updated to version 0.0.21
1 parent 43eb711 commit 52af6dd

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

CHANGELOG.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
v0.0.21
2+
3+
- Cleaned up for release
4+
- Updated CHANGELOG.txt
5+
6+
v0.0.20
7+
8+
- Updated Formatting
9+
110
v0.0.19
211

312
- Updated Add-SiteBinding

src/PSCerts/PSCerts.format.ps1xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@
8888
<Label>Thumbprint</Label>
8989
<Width>41</Width>
9090
</TableColumnHeader>
91-
<TableColumnHeader>
92-
<Label>Name</Label>
93-
</TableColumnHeader>
9491
<TableColumnHeader>
9592
<Label>Key</Label>
9693
<Alignment>Center</Alignment>
@@ -107,10 +104,17 @@
107104
<ScriptBlock>"$($PSStyle.Foreground.BrightCyan)$($_.Location)$($PSStyle.Reset)\$($PSStyle.Foreground.BrightBlue)$($_.Store)$($PSStyle.Reset)"</ScriptBlock>
108105
</TableColumnItem>
109106
<TableColumnItem>
110-
<PropertyName>Thumbprint</PropertyName>
111-
</TableColumnItem>
112-
<TableColumnItem>
113-
<PropertyName>DisplayName</PropertyName>
107+
<ScriptBlock>
108+
$output = "$($PSStyle.Foreground.BrightWhite)"
109+
if ($_.DisplayName.Length -gt 41) {
110+
$output += "$($_.DisplayName.Substring(0, 38))$($PSStyle.Foreground.BrightBlack)..."
111+
}
112+
else {
113+
$output += "$($_.DisplayName)"
114+
}
115+
$output += "`n$($PSStyle.Foreground.White)$($_.Thumbprint)$($PSStyle.Reset)"
116+
$output
117+
</ScriptBlock>
114118
</TableColumnItem>
115119
<TableColumnItem>
116120
<ScriptBlock>

0 commit comments

Comments
 (0)