{
  "id": "iconv",
  "name": "iconv",
  "description": "Convert text between character encodings.",
  "executables": [
    "iconv"
  ],
  "commands": {
    "format": 1,
    "label": "Convert encoding",
    "description": "Convert files from one character encoding to another, writing to the terminal unless redirected. Substitution format strings are left out.",
    "quality": "ai-draft",
    "base": "fig:iconv",
    "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/iconv.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "from",
        "label": "From encoding",
        "description": "Encoding of the input, for example UTF-8 or ISO-8859-1.",
        "type": "string",
        "option": [
          "-f",
          "--from-code"
        ],
        "suggestions": [
          {
            "value": "UTF-8",
            "label": "UTF-8"
          },
          {
            "value": "ISO-8859-1",
            "label": "ISO-8859-1"
          },
          {
            "value": "GBK",
            "label": "GBK"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "to",
        "label": "To encoding",
        "type": "string",
        "option": [
          "-t",
          "--to-code"
        ],
        "suggestions": [
          {
            "value": "UTF-8",
            "label": "UTF-8"
          },
          {
            "value": "ISO-8859-1",
            "label": "ISO-8859-1"
          },
          {
            "value": "ASCII//TRANSLIT",
            "label": "ASCII (transliterated)"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "discard",
        "label": "Discard unconvertible",
        "type": "boolean",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "inputs",
        "label": "Input files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "convert",
        "label": "Convert files",
        "fields": [
          "from",
          "to",
          "discard",
          "inputs"
        ],
        "required": [
          "from",
          "to",
          "inputs"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "from",
          "to",
          "inputs",
          "discard"
        ]
      }
    ]
  }
}
