formats/psscripttool.format.ps1xml
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- format type data generated 02/27/2020 10:21:29 by BOVINE320\Jeff --> <Configuration> <ViewDefinitions> <View> <!--Created 02/27/2020 10:21:29 by BOVINE320\Jeff--> <Name>default</Name> <ViewSelectedBy> <TypeName>PSScriptTool</TypeName> </ViewSelectedBy> <GroupBy> <ScriptBlock> if ($host.name -match 'console|code|RemoteHost') { "$([char]27)[38;5;226m$($_.verb)$([char]27)[0m" } else { $_.verb } </ScriptBlock> <Label>Verb</Label> </GroupBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Name</Label> <Width>35</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Alias</Label> <Width>18</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Synopsis</Label> <Width>55</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <ScriptBlock> if ($host.name -match 'console|code|RemoteHost' -AND $ISCoreCLR) { <!-- 22 July 2026 insert a link to online help if running PowerShell 7. I can't this to format properly in Windows PowerShell even though the syntax is correct. --> $link = $_.Online $text = $_.Name <!--"$([char]27)]8;;$link$([char]27)\$($text)$([char]27)]8;;$([char]27)[0m"--> "{0}$link{1}$text{0}{1}{2}" -f "$([char]27)]8;;","$([char]27)\","$([char]27)[0m" } else { $_.Name } </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> if ($host.name -match 'console|code|RemoteHost') { "$([char]27)[3;38;5;123m$($_.alias)$([char]27)[0m" } else { $_.alias } </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Synopsis</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <!--Created 07/25/2026 11:56:08 by PROSPERO\Jeff--> <Name>tags</Name> <ViewSelectedBy> <TypeName>PSScriptTool</TypeName> </ViewSelectedBy> <TableControl> <!--Delete the AutoSize node if you want to use the defined widths.--> <AutoSize /> <TableHeaders> <TableColumnHeader> <Label>Name</Label> <Width>13</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Alias</Label> <Width>8</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Tags</Label> <Width>18</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Synopsis</Label> <Width>40</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <!-- By default the entries use property names, but you can replace them with script blocks. <ScriptBlock>$_.foo /1mb -as [int]</ScriptBlock> --> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Alias</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Tags</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Synopsis</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |