{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "fmt"
        ],
        "label": "Format files",
        "description": "Format files in place. Leaves out --stdin.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "File patterns",
            "description": "Quote patterns; they override the config file.",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "diff",
            "label": "Show diff",
            "type": "boolean",
            "option": [
              "--diff"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "excludes",
            "label": "Exclude patterns",
            "type": "string",
            "option": [
              "--excludes"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "allow_node_modules",
            "label": "Allow node_modules",
            "type": "boolean",
            "option": [
              "--allow-node-modules"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "format",
            "label": "Format",
            "fields": [
              "files",
              "diff",
              "excludes"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "diff"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "allow_node_modules",
              "excludes"
            ]
          }
        ]
      },
      {
        "path": [
          "check"
        ],
        "label": "Check formatting",
        "description": "List files that are not formatted.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "File patterns",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "excludes",
            "label": "Exclude patterns",
            "type": "string",
            "option": [
              "--excludes"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "allow_node_modules",
            "label": "Allow node_modules",
            "type": "boolean",
            "option": [
              "--allow-node-modules"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "check",
            "label": "Check",
            "fields": [
              "files",
              "excludes"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "excludes"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "allow_node_modules"
            ]
          }
        ]
      },
      {
        "path": [
          "init"
        ],
        "label": "Create config",
        "description": "Create a dprint config in the current directory.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts",
            "license": "MIT"
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": []
          }
        ]
      }
    ]
  }
}
