{
  "id": "bat",
  "name": "bat",
  "homepage": "https://github.com/sharkdp/bat",
  "description": "A cat(1) clone with syntax highlighting and Git integration.",
  "icon": "SimpleIcons:bat",
  "executables": [
    "bat",
    "batcat"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/bat/config",
      "[configHome]/bat/themes/",
      "[configHome]/bat/syntaxes/"
    ],
    "exclude": [
      "[xdgCache]/bat/",
      "%LOCALAPPDATA%/bat/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "View files",
    "description": "Print files with syntax highlighting, line numbers and Git markers. Theme and syntax listing, custom mappings and diagnostics are left out.",
    "quality": "ai-draft",
    "base": "fig:bat",
    "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/bat.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "description": "Leave empty to read standard input.",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "language",
        "label": "Language",
        "description": "Force a syntax for highlighting, for example json or rust.",
        "type": "string",
        "option": [
          "--language",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "number",
        "label": "Line numbers only",
        "type": "boolean",
        "option": [
          "--number",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "plain",
        "label": "Plain output",
        "description": "No decorations.",
        "type": "boolean",
        "option": [
          "--plain",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "line_range",
        "label": "Line range",
        "description": "Only print these lines, for example 10:20.",
        "type": "string",
        "option": [
          "--line-range",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "highlight_line",
        "label": "Highlight lines",
        "description": "Highlight a line or range, for example 5:8.",
        "type": "string",
        "option": [
          "--highlight-line",
          "-H"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "diff",
        "label": "Show Git changes",
        "type": "boolean",
        "option": [
          "--diff",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "show_all",
        "label": "Show non-printable characters",
        "type": "boolean",
        "option": [
          "--show-all",
          "-A"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "theme",
        "label": "Theme",
        "type": "string",
        "option": [
          "--theme"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "paging",
        "label": "Paging",
        "type": "enum",
        "option": [
          "--paging"
        ],
        "choices": [
          {
            "value": "auto",
            "label": "Auto"
          },
          {
            "value": "always",
            "label": "Always"
          },
          {
            "value": "never",
            "label": "Never"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tabs",
        "label": "Tab width",
        "type": "integer",
        "option": [
          "--tabs"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "view",
        "label": "View a file",
        "fields": [
          "files",
          "language",
          "line_range",
          "highlight_line"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "no-pager",
        "label": "Print without pager",
        "set": {
          "paging": [
            "never"
          ]
        },
        "fields": [
          "files",
          "paging",
          "plain"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "language",
          "number",
          "plain",
          "line_range",
          "highlight_line"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "diff",
          "show_all",
          "theme",
          "paging",
          "tabs"
        ]
      }
    ]
  }
}
