Samples/dockerinspectimage.Crescendo.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
    "$schema": "../src/Microsoft.PowerShell.Crescendo.Schema.json",
    "Verb": "Get",
    "Noun": "DockerImageDetail",
    "OriginalName": "docker",
    "OriginalCommandElements": [
        "image",
        "inspect",
        "--format",
        "{{json .}}"
    ],
    "Parameters": [
        {
            "Name": "Id",
            "OriginalName": "",
            "Mandatory": true,
            "ValueFromPipelineByPropertyName": true
        }
    ],
    "OutputHandlers": [
        {
        "ParameterSetName": "Default",
        "Handler": "$args[0] | convertfrom-json | Add-Member -TypeName DockerImageDetail -PassThru"
        }
    ]
}