format.ps1xml support + fixes
+ Get-DockerProcess modified to display volume mappings (Binds) as well as docker-compose project names. + Reload-MyScripts will look for *.format.ps1xml files in the profile.d directory and load the format data from it. + Get-DockerProcess output is typed and a TypeData.format.ps1xml file was added to the package + Added _ll alias for easy posix ls -la output. + config.files.json modified for better neovim support.
This commit is contained in:
parent
fefb5e2572
commit
84d533a210
5 changed files with 81 additions and 17 deletions
41
docker/profile.d/TypeData.format.ps1xml
Normal file
41
docker/profile.d/TypeData.format.ps1xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Configuration>
|
||||
<ViewDefinitions>
|
||||
<View>
|
||||
<Name>DockerContainersOutputTable</Name>
|
||||
<ViewSelectedBy>
|
||||
<TypeName>DockerContainersOutput</TypeName>
|
||||
</ViewSelectedBy>
|
||||
<TableControl>
|
||||
<TableHeaders>
|
||||
<TableColumnHeader> <Width>12</Width> <Label>Project</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Width>15</Width> <Label>Service</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Width>20</Width> <Label>Name</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Width>14</Width> <Label>Status</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Width>20</Width> <Label>Image</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Width>15</Width> <Label>HostConfig.
|
||||
PortBindings</Label> </TableColumnHeader>
|
||||
<TableColumnHeader> <Label>HostConfig
|
||||
.Binds</Label> </TableColumnHeader>
|
||||
</TableHeaders>
|
||||
<TableRowEntries>
|
||||
<TableRowEntry>
|
||||
<Wrap/>
|
||||
<TableColumnItems>
|
||||
<TableColumnItem> <PropertyName>Project</PropertyName> </TableColumnItem>
|
||||
<TableColumnItem> <PropertyName>Service</PropertyName> </TableColumnItem>
|
||||
<TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem>
|
||||
<TableColumnItem> <PropertyName>Status</PropertyName> </TableColumnItem>
|
||||
<TableColumnItem> <ScriptBlock>
|
||||
$($($($_.Image -split ':') -join "`n:") -split '/') -join "`n/"
|
||||
</ScriptBlock> </TableColumnItem>
|
||||
<TableColumnItem> <ScriptBlock> $_.Ports -join "`n" </ScriptBlock> </TableColumnItem>
|
||||
<TableColumnItem> <ScriptBlock> $_.Binds -join "`n" </ScriptBlock> </TableColumnItem>
|
||||
</TableColumnItems>
|
||||
</TableRowEntry>
|
||||
</TableRowEntries>
|
||||
</TableControl>
|
||||
</View>
|
||||
</ViewDefinitions>
|
||||
</Configuration>
|
Loading…
Add table
Add a link
Reference in a new issue