{
  "id": "fdisk",
  "name": "fdisk",
  "description": "Manipulate disk partition tables.",
  "platforms": [
    "linux"
  ],
  "executables": [
    "fdisk"
  ],
  "commands": {
    "format": 1,
    "label": "List partition tables",
    "description": "List partition tables of devices (read-only). Interactive partitioning is left out.",
    "quality": "ai-draft",
    "base": "fig:fdisk",
    "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/fdisk.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "device",
        "label": "Device",
        "description": "Leave empty to list all devices.",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List partition tables",
        "type": "boolean",
        "option": [
          "--list",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list_details",
        "label": "List with details",
        "type": "boolean",
        "option": [
          "--list-details",
          "-x"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output columns",
        "type": "string",
        "option": [
          "--output",
          "-o"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "type",
        "label": "Disklabel type",
        "type": "string",
        "option": [
          "--type",
          "-t"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "list",
        "label": "List partitions",
        "set": {
          "list": [
            true
          ]
        },
        "fields": [
          "list",
          "device",
          "output"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "device",
          "list",
          "list_details"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "output",
          "type"
        ]
      }
    ]
  }
}
