{
  "id": "taplo",
  "name": "Taplo",
  "description": "Tool for validating, formatting and querying TOML documents.",
  "executables": [
    "taplo"
  ],
  "commands": {
    "format": 1,
    "label": "Taplo",
    "description": "Format, lint or query TOML documents. Config and language-server commands are left out.",
    "quality": "ai-draft",
    "base": "fig:taplo",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "format"
        ],
        "label": "Format TOML",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "TOML files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "description": "Paths or glob patterns. Files are rewritten in place.",
            "path": {
              "kind": "file",
              "role": "output"
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "diff",
            "label": "Print diff",
            "type": "boolean",
            "option": [
              "--diff"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_auto_config",
            "label": "No config search",
            "type": "boolean",
            "option": [
              "--no-auto-config"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "format",
            "label": "Format files",
            "fields": [
              "files",
              "config"
            ],
            "required": [
              "files"
            ]
          },
          {
            "id": "preview",
            "label": "Preview diff",
            "fields": [
              "files",
              "diff"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "diff"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "config",
              "no_auto_config"
            ]
          }
        ]
      },
      {
        "path": [
          "lint"
        ],
        "label": "Lint TOML",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "TOML files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema",
            "label": "Schema URL",
            "type": "url",
            "option": [
              "--schema"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_schema",
            "label": "Disable schema validation",
            "type": "boolean",
            "option": [
              "--no-schema"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "lint",
            "label": "Lint files",
            "fields": [
              "files",
              "schema",
              "no_schema"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "schema",
              "no_schema"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "config"
            ]
          }
        ]
      },
      {
        "path": [
          "get"
        ],
        "label": "Extract a value",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file_path",
            "label": "TOML file",
            "type": "path",
            "option": [
              "--file-path",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output_format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "--output-format",
              "-o"
            ],
            "choices": [
              {
                "value": "value",
                "label": "Value"
              },
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "toml",
                "label": "TOML"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "strip_newline",
            "label": "Strip trailing newline",
            "type": "boolean",
            "option": [
              "--strip-newline",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Read a document",
            "fields": [
              "file_path",
              "output_format"
            ],
            "required": [
              "file_path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file_path",
              "output_format",
              "strip_newline"
            ]
          }
        ]
      }
    ]
  }
}
