{
  "id": "elm",
  "name": "Elm",
  "description": "The Elm language command-line tool for building, installing and publishing Elm code.",
  "homepage": "https://elm-lang.org",
  "executables": [
    "elm"
  ],
  "commands": {
    "format": 1,
    "label": "Elm",
    "description": "Compile Elm code with elm make. Other subcommands (init, repl, reactor, install, publish) are left out.",
    "quality": "ai-draft",
    "base": "fig:elm",
    "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.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "make"
        ],
        "label": "Build Elm code",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/elm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "sources",
            "label": "Source files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output file",
            "description": "Where to write the compiled code, e.g. elm.js or index.html.",
            "type": "path",
            "option": [
              "--output"
            ],
            "path": {
              "kind": "file",
              "role": "output"
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug mode",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "optimize",
            "label": "Optimize (production)",
            "type": "boolean",
            "option": [
              "--optimize"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "docs",
            "label": "Docs JSON file",
            "type": "path",
            "option": [
              "--docs"
            ],
            "path": {
              "kind": "file",
              "role": "output"
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Debug build",
            "set": {
              "debug": [
                true
              ]
            },
            "fields": [
              "sources",
              "output",
              "debug"
            ],
            "required": [
              "sources"
            ]
          },
          {
            "id": "prod",
            "label": "Production build",
            "set": {
              "optimize": [
                true
              ]
            },
            "fields": [
              "sources",
              "output",
              "optimize"
            ],
            "required": [
              "sources"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "sources",
              "output",
              "debug",
              "optimize"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "docs"
            ]
          }
        ]
      }
    ]
  }
}
