{
  "id": "xleak",
  "name": "xleak",
  "homepage": "https://github.com/bgreenwell/xleak",
  "description": "Terminal Excel viewer with an interactive TUI",
  "executables": [
    "xleak"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/xleak/config.toml",
      "[appData]/xleak/config.toml",
      "%APPDATA%/xleak/config.toml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "View a spreadsheet",
    "description": "Show an Excel, CSV or TSV file in the terminal, interactively or as a table, or export it. Source: xleak README (usage section). Custom themes and keybindings are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "help",
        "url": "https://raw.githubusercontent.com/bgreenwell/xleak/HEAD/README.md",
        "revision": "2026-10-27",
        "evidence": "xleak quarterly-report.xlsx -i\nxleak report.xlsx --sheet \"Q3 Results\" -i\nxleak data.xlsx -i --formulas\nxleak wide-data.xlsx -i -H\nxleak data.csv --csv-delimiter \";\"\nxleak large-file.xlsx -n 20\nxleak data.xlsx --export csv > output.csv\nxleak data.xlsx --export json > output.json\nxleak data.xlsx --export text > output.txt\nxleak data.xlsx --export csv --delimiter \";\" > output.csv\nxleak data.xlsx --no-color\nxleak data.xlsx --no-header\nxleak data.xlsx -i --no-column-id\nxleak data.xlsx -i --no-row-id\nxleak workbook.xlsx --list-tables\nxleak workbook.xlsx --table \"Sales\"\nUse --theme <NAME> to select a theme from the command line.\nxleak --config /path/to/config.toml file.xlsx -i\n"
      }
    ],
    "field": [
      {
        "id": "file",
        "label": "Spreadsheet file",
        "type": "path",
        "position": 0,
        "min": 1,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "readme"
        ]
      },
      {
        "id": "interactive",
        "label": "Interactive viewer",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "sheet",
        "label": "Sheet",
        "description": "Sheet name, or a 1-based index.",
        "type": "string",
        "option": [
          "--sheet"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "rows",
        "label": "Rows to show",
        "description": "0 shows all rows.",
        "type": "integer",
        "option": [
          "-n"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "formulas",
        "label": "Show formulas",
        "type": "boolean",
        "option": [
          "--formulas"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "horizontal",
        "label": "Horizontal scrolling",
        "description": "Auto-size columns for wide files.",
        "type": "boolean",
        "option": [
          "-H"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "export",
        "label": "Export format",
        "type": "enum",
        "option": [
          "--export"
        ],
        "choices": [
          {
            "value": "csv",
            "label": "CSV"
          },
          {
            "value": "json",
            "label": "JSON"
          },
          {
            "value": "text",
            "label": "Text"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "no_header",
        "label": "First row is data",
        "type": "boolean",
        "option": [
          "--no-header"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "csv_delimiter",
        "label": "CSV field delimiter",
        "type": "string",
        "option": [
          "--csv-delimiter"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "table",
        "label": "Excel table",
        "type": "string",
        "option": [
          "--table"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "list_tables",
        "label": "List tables",
        "type": "boolean",
        "option": [
          "--list-tables"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "theme",
        "label": "Theme",
        "type": "string",
        "option": [
          "--theme"
        ],
        "suggestions": [
          {
            "value": "Default",
            "label": "Default"
          },
          {
            "value": "Dracula",
            "label": "Dracula"
          },
          {
            "value": "Nord",
            "label": "Nord"
          }
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "browse",
        "label": "Browse interactively",
        "set": {
          "interactive": [
            true
          ]
        },
        "fields": [
          "file",
          "interactive",
          "sheet",
          "formulas",
          "horizontal"
        ],
        "required": [
          "file"
        ]
      },
      {
        "id": "export",
        "label": "Export to stdout",
        "fields": [
          "file",
          "sheet",
          "export",
          "rows"
        ],
        "required": [
          "file",
          "export"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "file",
          "interactive",
          "sheet",
          "rows",
          "export"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "formulas",
          "horizontal",
          "no_header",
          "csv_delimiter",
          "table",
          "list_tables",
          "theme"
        ]
      }
    ]
  }
}
