id = "typos" name = "typos" description = "Source code spell checker." homepage = "https://github.com/crate-ci/typos" executables = ["typos"] [commands] format = 1 label = "Check spelling" description = "Check paths for typos; fixes are only written when asked." quality = "ai-draft" base = "fig:typos" 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/typos.ts" license = "MIT" [[commands.field]] id = "paths" label = "Paths" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "write" label = "Write fixes" type = "boolean" option = ["--write-changes", "-w"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "diff" label = "Show diff" type = "boolean" option = ["--diff"] sources = ["fig"] [[commands.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "format" label = "Output format" type = "string" option = ["--format"] suggestions = [{ value = "silent", label = "silent" }, { value = "brief", label = "brief" }, { value = "long", label = "long" }, { value = "json", label = "json" }] sources = ["fig"] [[commands.field]] id = "exclude" label = "Exclude glob" type = "string" option = ["--exclude"] sources = ["fig"] [[commands.field]] id = "hidden" label = "Search hidden files" type = "boolean" option = ["--hidden"] sources = ["fig"] [[commands.field]] id = "no_ignore" label = "Ignore .gitignore etc." type = "boolean" option = ["--no-ignore"] sources = ["fig"] [[commands.field]] id = "isolated" label = "Ignore implicit config" type = "boolean" option = ["--isolated"] sources = ["fig"] [[commands.field]] id = "files" label = "List files checked" type = "boolean" option = ["--files"] sources = ["fig"] [[commands.task]] id = "check" label = "Check" fields = ["paths", "exclude", "config"] required = [] [[commands.task]] id = "diff" label = "Preview fixes" set = { diff = [true] } fields = ["paths", "diff"] required = [] [[commands.task]] id = "fix" label = "Fix in place" set = { write = [true] } fields = ["paths", "write"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["paths", "write", "diff"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["config", "format", "exclude", "hidden", "no_ignore", "isolated", "files"]