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 }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/tokei.ts"
license = "MIT"
[[commands.field]]
id = "paths"
label = "Paths"
type = "path"
position = 0
multiple = true
path = { kind = "any", role = "input", must_exist = true }
sources = ["fig"]
[[commands.field]]
id = "files"
label = "Per-file statistics"
type = "boolean"
option = ["-f", "--files"]
sources = ["fig"]
[[commands.field]]
id = "exclude"
label = "Exclude patterns"
type = "string"
option = ["-e", "--exclude"]
multiple = true
sources = ["fig"]
[[commands.field]]
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"]
[[commands.field]]
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"]
[[commands.field]]
id = "type"
label = "Language types (comma separated)"
type = "string"
option = ["-t", "--type"]
sources = ["fig"]
[[commands.field]]
id = "hidden"
label = "Count hidden files"
type = "boolean"
option = ["--hidden"]
sources = ["fig"]
[[commands.field]]
id = "no_ignore"
label = "Ignore .gitignore rules"
type = "boolean"
option = ["--no-ignore"]
sources = ["fig"]
[[commands.field]]
id = "columns"
label = "Column width"
type = "integer"
option = ["-c", "--columns"]
sources = ["fig"]
[[commands.field]]
id = "verbose"
label = "Verbosity"
type = "count"
option = ["-v", "--verbose"]
sources = ["fig"]
[[commands.task]]
id = "count"
label = "Count a project"
fields = ["paths"]
required = []
[[commands.task]]
id = "files"
label = "Per-file, sorted by code"
fields = ["paths", "files", "sort"]
required = []
set = { files = [true], sort = ["code"] }
[[commands.task]]
id = "json"
label = "JSON report"
fields = ["paths", "output"]
required = []
set = { output = ["json"] }
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["paths", "files", "exclude", "output", "sort"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["type", "hidden", "no_ignore", "columns", "verbose"]