{
  "id": "electron",
  "name": "Electron",
  "homepage": "https://www.electronjs.org",
  "description": "Build cross-platform desktop apps with JavaScript, HTML and CSS.",
  "executables": [
    "electron"
  ],
  "commands": {
    "format": 1,
    "label": "Run an Electron app",
    "description": "Launch an Electron app from a path, optionally with a REPL or a preloaded module.",
    "quality": "ai-draft",
    "base": "fig:electron",
    "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/electron.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "app",
        "label": "App path",
        "description": "Path to an Electron app (folder or script).",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input",
          "must_exist": true
        },
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "interactive",
        "label": "Open main-process REPL",
        "type": "boolean",
        "option": [
          "--interactive",
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "require",
        "label": "Preload module",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--require",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "abi",
        "label": "Print Node ABI version",
        "type": "boolean",
        "option": [
          "--abi",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run app",
        "fields": [
          "app"
        ],
        "required": [
          "app"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "app",
          "interactive"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "require",
          "abi"
        ]
      }
    ]
  }
}
