formats/modulecommand.format.ps1xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration> <ViewDefinitions> <View> <Name>default</Name> <ViewSelectedBy> <TypeName>ModuleCommand</TypeName> </ViewSelectedBy> <GroupBy> <ScriptBlock>"{0} [v{1}]" -f $_.ModuleName,$_.version</ScriptBlock> <Label>ModuleName</Label> </GroupBy> <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>13</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Synopsis</Label> <Width>40</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <Wrap /> <TableColumnItems> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Alias</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Synopsis</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <!--Created 02/29/2020 12:21:51 by BOVINE320\Jeff--> <Name>List</Name> <ViewSelectedBy> <TypeName>ModuleCommand</TypeName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <Label>ModuleName</Label> <PropertyName>ModuleName</PropertyName> </ListItem> <ListItem> <Label>Name</Label> <PropertyName>Name</PropertyName> </ListItem> <ListItem> <Label>Alias</Label> <PropertyName>Alias</PropertyName> </ListItem> <ListItem> <Label>Synopsis</Label> <PropertyName>Synopsis</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <!--Created 05/21/2020 11:37:41 by BOVINE320\Jeff--> <Name>verb</Name> <ViewSelectedBy> <TypeName>ModuleCommand</TypeName> </ViewSelectedBy> <GroupBy> <PropertyName>Verb</PropertyName> <Label>Verb</Label> </GroupBy> <TableControl> <!--Delete the AutoSize node if you want to use the defined widths. <AutoSize />--> <TableHeaders> <TableColumnHeader> <Label>Name</Label> <Width>30</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Alias</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Type</Label> <Width>11</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Synopsis</Label> <Width>40</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <Wrap /> <TableColumnItems> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Alias</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Type</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Synopsis</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <!--Created 01/18/2022 12:29:39 by PROSPERO\Jeff--> <Name>version</Name> <ViewSelectedBy> <TypeName>ModuleCommand</TypeName> </ViewSelectedBy> <GroupBy> <!-- You can also use a scriptblock to define a custom property name. You must have a Label tag. <ScriptBlock>$_.machinename.ToUpper()</ScriptBlock> <Label>Computername</Label> Use <Label> to set the displayed value. --> <ScriptBlock>"{0} [v{1}]" -f $_.ModuleName,$_.version</ScriptBlock> <Label>ModuleName</Label> </GroupBy> <TableControl> <!--Delete the AutoSize node if you want to use the defined widths.--> <AutoSize /> <TableHeaders> <TableColumnHeader> <Label>Name</Label> <Width>21</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Alias</Label> <Width>8</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Compatible</Label> <Width>51</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>PSVersion</Label> <Width>12</Width> <Alignment>right</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <!-- By default the entries use property names, but you can replace them with scriptblocks. <ScriptBlock>$_.foo /1mb -as [int]</ScriptBlock> --> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Alias</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Compatible</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>PSVersion</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |