Samples/dockergetps.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
{
   "$schema": "https://aka.ms/Crescendo/Schema.json",
   "Commands": [
        {
            "Verb": "Get",
            "Noun": "DockerPs",
            "OriginalName": "docker",
            "OriginalCommandElements": [
                "ps",
                "--format",
                "{{json .}}"
            ],
            "OutputHandlers": [
                {
                "ParameterSetName": "Default",
                "Handler": "$args[0] | convertfrom-json | Add-Member -TypeName DockerProcess -PassThru"
                }
            ]
         
        }
    ]
}