id = "dprint"
name = "dprint"
homepage = "https://dprint.dev"
description = "A pluggable and configurable code formatting platform. One fast, secure tool for every language in your repo."
executables = ["dprint"]
[dotfiles]
paths = [
"[configHome]/dprint/dprint.jsonc",
"~/Library/Application Support/dprint/dprint.jsonc",
]
exclude = ["[cacheHome]/dprint/"]
secret = []
side_effect = false
[commands]
format = 1
label = "dprint"
description = "Format or check source files with dprint. Plugin management and config subcommands are left out."
quality = "ai-draft"
base = "fig:dprint"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts"
license = "MIT"
[[commands.subcommand]]
path = ["fmt"]
label = "Format files"
description = "Format files in place. Leaves out --stdin."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "files"
label = "File patterns"
description = "Quote patterns; they override the config file."
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "diff"
label = "Show diff"
type = "boolean"
option = ["--diff"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "excludes"
label = "Exclude patterns"
type = "string"
option = ["--excludes"]
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "allow_node_modules"
label = "Allow node_modules"
type = "boolean"
option = ["--allow-node-modules"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "format"
label = "Format"
fields = ["files", "diff", "excludes"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["files", "diff"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["allow_node_modules", "excludes"]
[[commands.subcommand]]
path = ["check"]
label = "Check formatting"
description = "List files that are not formatted."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "files"
label = "File patterns"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "excludes"
label = "Exclude patterns"
type = "string"
option = ["--excludes"]
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "allow_node_modules"
label = "Allow node_modules"
type = "boolean"
option = ["--allow-node-modules"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "check"
label = "Check"
fields = ["files", "excludes"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["files", "excludes"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["allow_node_modules"]
[[commands.subcommand]]
path = ["init"]
label = "Create config"
description = "Create a dprint config in the current directory."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts"
license = "MIT"
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = []