formats/host.ps1xml
<?xml version="1.0" encoding="utf-8"?> <!-- SPDX-License-Identifier: Apache-2.0 --> <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Schemas/Format.xsd"> <ViewDefinitions> <View> <Name>XoPowershell.Host</Name> <ViewSelectedBy> <TypeName>XoPowershell.Host</TypeName> </ViewSelectedBy> <TableControl> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>HostUuid</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>PowerState</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>VCpus</PropertyName> <Alignment>Right</Alignment> </TableColumnItem> <TableColumnItem> <ScriptBlock> if ($_.Memory.size) { $_.Memory.size } else { "N/A" } </ScriptBlock> <Alignment>Right</Alignment> </TableColumnItem> <TableColumnItem> <PropertyName>Description</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> <TableHeaders> <TableColumnHeader> <Label>ID</Label> <Width>36</Width> </TableColumnHeader> <TableColumnHeader> <Label>Name</Label> <Width>20</Width> </TableColumnHeader> <TableColumnHeader> <Label>Power State</Label> <Width>12</Width> </TableColumnHeader> <TableColumnHeader> <Label>CPUs</Label> <Width>5</Width> <Alignment>Right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Memory</Label> <Width>12</Width> <Alignment>Right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Description</Label> <Width>30</Width> </TableColumnHeader> </TableHeaders> </TableControl> </View> </ViewDefinitions> </Configuration> |