{
  "id": "datree",
  "name": "Datree",
  "homepage": "https://hub.datree.io",
  "description": "Prevent Kubernetes misconfigurations from reaching production.",
  "icon": "https://raw.githubusercontent.com/datreeio/datree/main/images/datree-logo.svg",
  "executables": [
    "datree"
  ],
  "dotfiles": {
    "paths": [
      "~/.datree/config.yaml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.datree/config.yaml",
        "match": {
          "key_path": [
            "token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Datree policy check",
    "description": "Run datree test against Kubernetes manifests or Helm output. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:datree",
    "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/datree.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "test"
        ],
        "label": "Check manifests",
        "description": "Runs policy checks on one or more manifest paths or globs.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/datree.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "Manifest files or globs",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "policy",
            "label": "Policy name",
            "type": "string",
            "option": [
              "--policy",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output format",
            "type": "string",
            "option": [
              "--output",
              "-o"
            ],
            "suggestions": [
              {
                "value": "simple",
                "label": "simple"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "xml",
                "label": "xml"
              },
              {
                "value": "junit",
                "label": "junit"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema_version",
            "label": "Kubernetes version",
            "type": "string",
            "option": [
              "--schema-version",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ignore_missing_schemas",
            "label": "Ignore missing schemas",
            "type": "boolean",
            "option": [
              "--ignore-missing-schemas"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "only_k8s_files",
            "label": "Only Kubernetes YAML",
            "type": "boolean",
            "option": [
              "--only-k8s-files"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_record",
            "label": "Do not send metadata to backend",
            "type": "boolean",
            "option": [
              "--no-record"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Show how-to-fix links",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "policy_config",
            "label": "Local policy file",
            "type": "path",
            "option": [
              "--policy-config"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "basic",
            "label": "Check manifests",
            "fields": [
              "files",
              "policy",
              "output"
            ],
            "required": [
              "files"
            ]
          },
          {
            "id": "offline",
            "label": "Check without reporting",
            "set": {
              "no_record": [
                true
              ]
            },
            "fields": [
              "files",
              "no_record",
              "ignore_missing_schemas"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "policy",
              "output",
              "no_record"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "ignore_missing_schemas",
              "only_k8s_files",
              "verbose",
              "policy_config",
              "schema_version"
            ]
          }
        ]
      }
    ]
  }
}
