Samples/dockergetimage.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
{
   "$schema": "../src/Microsoft.PowerShell.Crescendo.Schema.json",
   "Commands": [
        {
            "Verb": "Get",
            "Noun": "DockerImage",
            "OriginalName": "docker",
            "OriginalCommandElements": [
                "image",
                "ls",
                "--format",
                "{{json .}}"
            ],
            "OutputHandlers": [
                {
                "ParameterSetName": "Default",
                "Handler": "$input | convertfrom-json | add-member -typename DockerImage -PassThru",
                "StreamOutput": true
                }
            ]
        }
    ]
}