{
  "id": "tidy",
  "name": "HTML Tidy",
  "homepage": "https://www.html-tidy.org",
  "description": "Tidy tidies HTML and XML: it can tidy your documents by itself, and developers can integrate its features into even more powerful tools.",
  "icon": "https://github.com/htacg.png",
  "executables": [
    "tidy"
  ],
  "dotfiles": {
    "paths": [
      "~/.tidyrc"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Tidy HTML/XML",
    "description": "Clean up and pretty-print an HTML or XML file. Encoding switches and accessibility levels are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "revision": "tidy -h, Apple build 8433",
        "evidence": " -output <file>, -o  write output to the specified <file>\n -config <file>      set configuration options from the specified <file>\n -modify, -m         modify the original input files\n -indent, -i         indent element content\n -wrap <column>, -w  wrap text at the specified <column>. 0 is assumed if\n -upper, -u          force tags to upper case\n -clean, -c          replace FONT, NOBR and CENTER tags by CSS\n -bare, -b           strip out smart quotes and em dashes, etc.\n -numeric, -n        output numeric rather than named entities\n -errors, -e         only show errors\n -quiet, -q          suppress nonessential output\n -omit               omit optional end tags\n -xml                specify the input is well formed XML\n -asxml, -asxhtml    convert HTML to well formed XHTML\n -ashtml             force XHTML to well formed HTML\nInput/Output default to stdin/stdout respectively\n"
      }
    ],
    "field": [
      {
        "id": "input",
        "label": "Input file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "position": 0,
        "sources": [
          "help"
        ]
      },
      {
        "id": "output",
        "label": "Write result to",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "-output",
          "-o"
        ],
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "modify",
        "label": "Modify input file in place",
        "type": "boolean",
        "option": [
          "-modify",
          "-m"
        ],
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "indent",
        "label": "Indent element content",
        "type": "boolean",
        "option": [
          "-indent",
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "wrap",
        "label": "Wrap column",
        "type": "integer",
        "option": [
          "-wrap",
          "-w"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "clean",
        "label": "Replace FONT/NOBR/CENTER with CSS",
        "type": "boolean",
        "option": [
          "-clean",
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "errors_only",
        "label": "Only show errors",
        "type": "boolean",
        "option": [
          "-errors",
          "-e"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Suppress nonessential output",
        "type": "boolean",
        "option": [
          "-quiet",
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "xml",
        "label": "Input is well-formed XML",
        "type": "boolean",
        "option": [
          "-xml"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "asxhtml",
        "label": "Convert HTML to XHTML",
        "type": "boolean",
        "option": [
          "-asxhtml"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "config",
        "label": "Configuration file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-config"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "pretty",
        "label": "Pretty-print to a new file",
        "fields": [
          "input",
          "output",
          "indent",
          "wrap"
        ],
        "required": [
          "input",
          "output"
        ],
        "set": {
          "indent": [
            true
          ]
        }
      },
      {
        "id": "check",
        "label": "Check for errors only",
        "fields": [
          "input",
          "errors_only"
        ],
        "required": [
          "input"
        ],
        "set": {
          "errors_only": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "input",
          "output",
          "indent",
          "wrap",
          "errors_only"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "modify",
          "clean",
          "quiet",
          "xml",
          "asxhtml",
          "config"
        ]
      }
    ]
  }
}
