{
  "id": "cdk8s",
  "name": "CDK8s",
  "description": "Define Kubernetes applications and reusable abstractions using familiar programming languages.",
  "homepage": "https://cdk8s.io",
  "executables": [
    "cdk8s"
  ],
  "commands": {
    "format": 1,
    "label": "CDK8s project",
    "description": "Create a project, import CRDs and synthesize manifests.",
    "quality": "ai-draft",
    "base": "fig:cdk8s",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "init"
        ],
        "label": "Create a project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "type",
            "label": "Project type",
            "type": "enum",
            "position": 0,
            "choices": [
              {
                "value": "typescript-app",
                "label": "TypeScript"
              },
              {
                "value": "python-app",
                "label": "Python"
              },
              {
                "value": "java-app",
                "label": "Java"
              },
              {
                "value": "go-app",
                "label": "Go"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Create a project",
            "fields": [
              "type"
            ],
            "required": [
              "type"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "type"
            ]
          }
        ]
      },
      {
        "path": [
          "import"
        ],
        "label": "Import a CRD",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "spec",
            "label": "CRD schema",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "language",
            "label": "Language",
            "type": "enum",
            "option": [
              "--language",
              "-l"
            ],
            "choices": [
              {
                "value": "typescript",
                "label": "TypeScript"
              },
              {
                "value": "python",
                "label": "Python"
              },
              {
                "value": "java",
                "label": "Java"
              },
              {
                "value": "go",
                "label": "Go"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output directory",
            "type": "path",
            "option": [
              "--output",
              "-o"
            ],
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "class_prefix",
            "label": "Class name prefix",
            "type": "string",
            "option": [
              "--class-prefix"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exclude",
            "label": "Exclude types (regexp)",
            "type": "string",
            "option": [
              "--exclude"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "import",
            "label": "Import a CRD",
            "fields": [
              "spec",
              "language",
              "output"
            ],
            "required": [
              "spec"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "spec",
              "language",
              "output",
              "class_prefix",
              "exclude"
            ]
          }
        ]
      },
      {
        "path": [
          "synth"
        ],
        "label": "Synthesize manifests",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cdk8s.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "output",
            "label": "Output directory",
            "type": "path",
            "option": [
              "--output",
              "-o"
            ],
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "stdout",
            "label": "Write to standard output",
            "type": "boolean",
            "option": [
              "--stdout",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "app",
            "label": "App command",
            "description": "Command used to execute the cdk8s app.",
            "type": "string",
            "option": [
              "--app",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "validate",
            "label": "Run validation plugins",
            "type": "boolean",
            "option": [
              "--validate"
            ],
            "false_option": "--no-validate",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "synth",
            "label": "Synthesize to a directory",
            "fields": [
              "output",
              "validate"
            ],
            "required": []
          },
          {
            "id": "synth-stdout",
            "label": "Print manifests",
            "fields": [
              "stdout"
            ],
            "required": [],
            "set": {
              "stdout": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "output",
              "stdout",
              "validate"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "app"
            ]
          }
        ]
      }
    ]
  }
}
