{
  "id": "elm-format",
  "name": "elm-format",
  "homepage": "https://github.com/avh4/elm-format",
  "description": "Format Elm source code in the idiomatic way.",
  "executables": [
    "elm-format"
  ],
  "commands": {
    "format": 1,
    "label": "Format Elm code",
    "description": "Format Elm files in place, to a separate file, or check them. Files are overwritten unless --output or --validate is used.",
    "quality": "ai-draft",
    "base": "fig:elm-format",
    "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/elm-format.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "input",
        "label": "Files or directories",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input",
          "must_exist": true
        },
        "position": 0,
        "multiple": true,
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output file",
        "description": "Write here instead of overwriting the source.",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "--output"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "validate",
        "label": "Validate only",
        "description": "Check formatting without changing files.",
        "type": "boolean",
        "option": [
          "--validate"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "yes",
        "label": "Answer yes to prompts",
        "type": "boolean",
        "option": [
          "--yes"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "elm_version",
        "label": "Elm version",
        "type": "string",
        "option": [
          "--elm-version"
        ],
        "suggestions": [
          {
            "value": "0.19",
            "label": "0.19"
          },
          {
            "value": "0.18",
            "label": "0.18"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "validate",
        "label": "Check formatting",
        "fields": [
          "input",
          "validate"
        ],
        "required": [
          "input"
        ],
        "set": {
          "validate": [
            true
          ]
        }
      },
      {
        "id": "format",
        "label": "Format in place",
        "fields": [
          "input",
          "yes"
        ],
        "required": [
          "input"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "input",
          "validate",
          "yes"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "output",
          "elm_version"
        ]
      }
    ]
  }
}
