{
  "id": "unix2dos",
  "name": "unix2dos",
  "description": "Convert text files from Unix to DOS line endings.",
  "executables": [
    "unix2dos"
  ],
  "commands": {
    "format": 1,
    "label": "Convert to DOS line endings",
    "description": "Convert files in place from Unix to DOS line breaks. New-file mode, code page and UTF-16 options are left out.",
    "quality": "ai-draft",
    "base": "fig:unix2dos",
    "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/unix2dos.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "description": "Files are overwritten in place.",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "keepdate",
        "label": "Keep original timestamp",
        "type": "boolean",
        "option": [
          "-k",
          "--keepdate"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-q",
          "--quiet"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "force",
        "label": "Convert binary files too",
        "type": "boolean",
        "option": [
          "-f",
          "--force"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "add_bom",
        "label": "Write a UTF-8 BOM",
        "type": "boolean",
        "option": [
          "-m",
          "--add-bom"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "convert",
        "label": "Convert files",
        "fields": [
          "files",
          "keepdate",
          "quiet"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "keepdate",
          "quiet"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "force",
          "add_bom"
        ]
      }
    ]
  }
}
