id = "taplo" name = "Taplo" description = "Tool for validating, formatting and querying TOML documents." executables = ["taplo"] [commands] format = 1 label = "Taplo" description = "Format, lint or query TOML documents. Config and language-server commands are left out." quality = "ai-draft" base = "fig:taplo" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts" license = "MIT" [[commands.subcommand]] path = ["format"] label = "Format TOML" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts" license = "MIT" [[commands.subcommand.field]] id = "files" label = "TOML files" type = "path" position = 0 multiple = true description = "Paths or glob patterns. Files are rewritten in place." path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.subcommand.field]] id = "diff" label = "Print diff" type = "boolean" option = ["--diff"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "no_auto_config" label = "No config search" type = "boolean" option = ["--no-auto-config"] sources = ["fig"] [[commands.subcommand.task]] id = "format" label = "Format files" fields = ["files", "config"] required = ["files"] [[commands.subcommand.task]] id = "preview" label = "Preview diff" fields = ["files", "diff"] required = ["files"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["files", "diff"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["config", "no_auto_config"] [[commands.subcommand]] path = ["lint"] label = "Lint TOML" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts" license = "MIT" [[commands.subcommand.field]] id = "files" label = "TOML files" type = "path" position = 0 multiple = true path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "schema" label = "Schema URL" type = "url" option = ["--schema"] sources = ["fig"] [[commands.subcommand.field]] id = "no_schema" label = "Disable schema validation" type = "boolean" option = ["--no-schema"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "lint" label = "Lint files" fields = ["files", "schema", "no_schema"] required = ["files"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["files", "schema", "no_schema"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["config"] [[commands.subcommand]] path = ["get"] label = "Extract a value" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/taplo.ts" license = "MIT" [[commands.subcommand.field]] id = "file_path" label = "TOML file" type = "path" option = ["--file-path", "-f"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "output_format" label = "Output format" type = "enum" option = ["--output-format", "-o"] choices = [{ value = "value", label = "Value" }, { value = "json", label = "JSON" }, { value = "toml", label = "TOML" }] sources = ["fig"] [[commands.subcommand.field]] id = "strip_newline" label = "Strip trailing newline" type = "boolean" option = ["--strip-newline", "-s"] sources = ["fig"] [[commands.subcommand.task]] id = "get" label = "Read a document" fields = ["file_path", "output_format"] required = ["file_path"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file_path", "output_format", "strip_newline"]