{
  "id": "ncdu",
  "name": "ncdu",
  "homepage": "https://dev.yorhel.nl/ncdu",
  "description": "An interactive curses-based version of the well-known du(1).",
  "executables": [
    "ncdu"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/ncdu/config"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Analyze disk usage",
    "description": "Open the ncdu disk usage browser on a directory. Sorting, colours, export/import files and the delete command are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://dev.yorhel.nl/ncdu/man",
        "revision": "ncdu 2 manual (2026-10-27)",
        "evidence": "-x, --one-file-system\n--cross-file-system\n--exclude pattern\n-L, --follow-symlinks, --no-follow-symlinks\n-t, --threads\n-e, --extended,\n--enable-delete, --disable-delete\n-r\n--si, --no-si\n--disk-usage, --apparent-size\n--show-hidden, --hide-hidden\n-q, --slow-ui-updates, --fast-ui-updates"
      }
    ],
    "field": [
      {
        "id": "directory",
        "label": "Directory",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "position": 0,
        "min": 0,
        "sources": [
          "man"
        ]
      },
      {
        "id": "one_file_system",
        "label": "Stay on one filesystem",
        "type": "boolean",
        "option": [
          "--one-file-system",
          "-x"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "exclude",
        "label": "Exclude pattern",
        "type": "string",
        "option": [
          "--exclude"
        ],
        "multiple": true,
        "sources": [
          "man"
        ]
      },
      {
        "id": "follow_symlinks",
        "label": "Follow symlinks",
        "type": "boolean",
        "option": [
          "--follow-symlinks",
          "-L"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "threads",
        "label": "Threads",
        "type": "integer",
        "option": [
          "--threads",
          "-t"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "extended",
        "label": "Extended information",
        "type": "boolean",
        "option": [
          "--extended",
          "-e"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "si",
        "label": "Use powers of 1000 (SI)",
        "type": "boolean",
        "option": [
          "--si"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "apparent_size",
        "label": "Show apparent size",
        "type": "boolean",
        "option": [
          "--apparent-size"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "read_only",
        "label": "Read-only (disable deleting)",
        "type": "boolean",
        "option": [
          "-r"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "enable_delete",
        "label": "Enable file deletion",
        "type": "boolean",
        "option": [
          "--enable-delete"
        ],
        "effect": "delete",
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "browse",
        "label": "Browse a directory",
        "fields": [
          "directory",
          "one_file_system",
          "exclude",
          "read_only"
        ],
        "required": [
          "directory"
        ]
      },
      {
        "id": "root",
        "label": "Scan one filesystem, read-only",
        "set": {
          "one_file_system": [
            true
          ],
          "read_only": [
            true
          ]
        },
        "lock": [
          "read_only"
        ],
        "fields": [
          "directory",
          "one_file_system",
          "read_only",
          "exclude"
        ],
        "required": [
          "directory"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "directory",
          "one_file_system",
          "exclude",
          "read_only"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "follow_symlinks",
          "threads",
          "extended",
          "si",
          "apparent_size",
          "enable_delete"
        ]
      }
    ]
  }
}
