Samples/dockerinspectimage.Crescendo.json

{
   "$schema": "https://aka.ms/PowerShell/Crescendo/Schemas/2021-11",
   "Commands": [
        {
            "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"
                }
            ]
        }
    ]
}