{
  "id": "lsblk",
  "name": "lsblk",
  "description": "List block devices.",
  "executables": [
    "lsblk"
  ],
  "platforms": [
    "linux"
  ],
  "commands": {
    "format": 1,
    "label": "List block devices",
    "description": "Show block devices as a tree or list. Include/exclude by major number, dedup and sysroot options are left out.",
    "quality": "ai-draft",
    "base": "fig:lsblk",
    "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/lsblk.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "device",
        "label": "Device",
        "description": "Optional device to list, for example /dev/sda.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Include empty devices",
        "type": "boolean",
        "option": [
          "--all",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "bytes",
        "label": "Sizes in bytes",
        "type": "boolean",
        "option": [
          "--bytes",
          "-b"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "nodeps",
        "label": "Hide holders and slaves",
        "type": "boolean",
        "option": [
          "--nodeps",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "fs",
        "label": "Filesystem information",
        "type": "boolean",
        "option": [
          "--fs",
          "-f"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "json",
        "label": "JSON output",
        "type": "boolean",
        "option": [
          "--json",
          "-J"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List instead of tree",
        "type": "boolean",
        "option": [
          "--list",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "noheadings",
        "label": "No header line",
        "type": "boolean",
        "option": [
          "--noheadings",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "perms",
        "label": "Owner, group and mode",
        "type": "boolean",
        "option": [
          "--perms",
          "-m"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "topology",
        "label": "Topology information",
        "type": "boolean",
        "option": [
          "--topology",
          "-t"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output columns",
        "description": "Comma-separated column names, for example NAME,SIZE,TYPE.",
        "type": "string",
        "option": [
          "--output",
          "-o"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "filesystems",
        "label": "Filesystems overview",
        "fields": [
          "device",
          "fs"
        ],
        "set": {
          "fs": [
            true
          ]
        }
      },
      {
        "id": "json",
        "label": "JSON listing",
        "fields": [
          "device",
          "json",
          "output"
        ],
        "set": {
          "json": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "device",
          "fs",
          "json",
          "list",
          "output"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "nodeps",
          "noheadings",
          "perms",
          "topology",
          "bytes",
          "all"
        ]
      }
    ]
  }
}
