{
  "id": "typos",
  "name": "typos",
  "description": "Source code spell checker.",
  "homepage": "https://github.com/crate-ci/typos",
  "executables": [
    "typos"
  ],
  "commands": {
    "format": 1,
    "label": "Check spelling",
    "description": "Check paths for typos; fixes are only written when asked.",
    "quality": "ai-draft",
    "base": "fig:typos",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/typos.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "paths",
        "label": "Paths",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "write",
        "label": "Write fixes",
        "type": "boolean",
        "option": [
          "--write-changes",
          "-w"
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "diff",
        "label": "Show diff",
        "type": "boolean",
        "option": [
          "--diff"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config",
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "format",
        "label": "Output format",
        "type": "string",
        "option": [
          "--format"
        ],
        "suggestions": [
          {
            "value": "silent",
            "label": "silent"
          },
          {
            "value": "brief",
            "label": "brief"
          },
          {
            "value": "long",
            "label": "long"
          },
          {
            "value": "json",
            "label": "json"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "exclude",
        "label": "Exclude glob",
        "type": "string",
        "option": [
          "--exclude"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "hidden",
        "label": "Search hidden files",
        "type": "boolean",
        "option": [
          "--hidden"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_ignore",
        "label": "Ignore .gitignore etc.",
        "type": "boolean",
        "option": [
          "--no-ignore"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "isolated",
        "label": "Ignore implicit config",
        "type": "boolean",
        "option": [
          "--isolated"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "files",
        "label": "List files checked",
        "type": "boolean",
        "option": [
          "--files"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "check",
        "label": "Check",
        "fields": [
          "paths",
          "exclude",
          "config"
        ],
        "required": []
      },
      {
        "id": "diff",
        "label": "Preview fixes",
        "set": {
          "diff": [
            true
          ]
        },
        "fields": [
          "paths",
          "diff"
        ],
        "required": []
      },
      {
        "id": "fix",
        "label": "Fix in place",
        "set": {
          "write": [
            true
          ]
        },
        "fields": [
          "paths",
          "write"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "paths",
          "write",
          "diff"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "format",
          "exclude",
          "hidden",
          "no_ignore",
          "isolated",
          "files"
        ]
      }
    ]
  }
}
