{
  "id": "du",
  "name": "du",
  "description": "Estimate file space usage of files and directories.",
  "executables": [
    "du"
  ],
  "commands": {
    "format": 1,
    "label": "Disk usage",
    "description": "Show disk usage for files and directories. Only the macOS/BSD flags in the completion data are offered.",
    "quality": "ai-draft",
    "base": "fig:du",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/du.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "paths",
        "label": "Files or directories",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input"
        },
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "human",
        "label": "Human-readable sizes",
        "type": "boolean",
        "option": [
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "summary",
        "label": "Summary only",
        "description": "One entry per argument (same as depth 0).",
        "type": "boolean",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Include files",
        "type": "boolean",
        "option": [
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "total",
        "label": "Grand total",
        "type": "boolean",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "depth",
        "label": "Depth",
        "description": "Show entries this many directories deep.",
        "type": "integer",
        "option": [
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "follow_all",
        "label": "Follow all symlinks",
        "type": "boolean",
        "option": [
          "-L"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore",
        "label": "Ignore mask",
        "type": "string",
        "option": [
          "-I"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "summary",
        "label": "Size of each item",
        "fields": [
          "paths",
          "human",
          "summary"
        ],
        "required": [
          "paths"
        ],
        "set": {
          "human": [
            true
          ],
          "summary": [
            true
          ]
        }
      },
      {
        "id": "tree",
        "label": "Sizes one level deep",
        "fields": [
          "paths",
          "human",
          "depth",
          "total"
        ],
        "required": [
          "paths"
        ],
        "set": {
          "human": [
            true
          ],
          "depth": [
            1
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "paths",
          "human",
          "summary",
          "depth",
          "total"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "all",
          "follow_all",
          "ignore"
        ]
      }
    ]
  }
}
