{
  "id": "tokei",
  "name": "Tokei",
  "homepage": "https://github.com/XAMPPRocky/tokei",
  "description": "Tokei is a program that displays statistics about your code.",
  "executables": [
    "tokei"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/tokei.toml",
      "[configHome]/.tokeirc",
      "~/tokei.toml",
      "~/.tokeirc"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Count lines of code",
    "description": "Count code, comments and blanks in one or more paths. Only flags in the Fig spec are offered.",
    "quality": "ai-draft",
    "base": "fig:tokei",
    "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/tokei.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "paths",
        "label": "Paths",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "files",
        "label": "Per-file statistics",
        "type": "boolean",
        "option": [
          "-f",
          "--files"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "exclude",
        "label": "Exclude patterns",
        "type": "string",
        "option": [
          "-e",
          "--exclude"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output format",
        "type": "enum",
        "option": [
          "-o",
          "--output"
        ],
        "choices": [
          {
            "value": "cbor",
            "label": "CBOR"
          },
          {
            "value": "json",
            "label": "JSON"
          },
          {
            "value": "yaml",
            "label": "YAML"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "sort",
        "label": "Sort by",
        "type": "enum",
        "option": [
          "-s",
          "--sort"
        ],
        "choices": [
          {
            "value": "files",
            "label": "Files"
          },
          {
            "value": "lines",
            "label": "Lines"
          },
          {
            "value": "blanks",
            "label": "Blanks"
          },
          {
            "value": "code",
            "label": "Code"
          },
          {
            "value": "comments",
            "label": "Comments"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "type",
        "label": "Language types (comma separated)",
        "type": "string",
        "option": [
          "-t",
          "--type"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "hidden",
        "label": "Count hidden files",
        "type": "boolean",
        "option": [
          "--hidden"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_ignore",
        "label": "Ignore .gitignore rules",
        "type": "boolean",
        "option": [
          "--no-ignore"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "columns",
        "label": "Column width",
        "type": "integer",
        "option": [
          "-c",
          "--columns"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbosity",
        "type": "count",
        "option": [
          "-v",
          "--verbose"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "count",
        "label": "Count a project",
        "fields": [
          "paths"
        ],
        "required": []
      },
      {
        "id": "files",
        "label": "Per-file, sorted by code",
        "fields": [
          "paths",
          "files",
          "sort"
        ],
        "required": [],
        "set": {
          "files": [
            true
          ],
          "sort": [
            "code"
          ]
        }
      },
      {
        "id": "json",
        "label": "JSON report",
        "fields": [
          "paths",
          "output"
        ],
        "required": [],
        "set": {
          "output": [
            "json"
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "paths",
          "files",
          "exclude",
          "output",
          "sort"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "type",
          "hidden",
          "no_ignore",
          "columns",
          "verbose"
        ]
      }
    ]
  }
}
