{
  "id": "cordova",
  "name": "Apache Cordova",
  "description": "Build native mobile apps from HTML, CSS and JavaScript.",
  "homepage": "https://cordova.apache.org",
  "executables": [
    "cordova"
  ],
  "commands": {
    "format": 1,
    "label": "Cordova project",
    "description": "Create, build and run Cordova apps.",
    "quality": "ai-draft",
    "base": "fig:cordova",
    "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/cordova.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "create"
        ],
        "label": "Create a project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Directory",
            "description": "Must not already exist.",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "app_id",
            "label": "Reverse-domain ID",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "name",
            "label": "App name",
            "type": "string",
            "position": 2,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "template",
            "label": "Template",
            "description": "Local path, npm package or GitHub template.",
            "type": "string",
            "option": [
              "--template"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create",
            "fields": [
              "path",
              "app_id",
              "name"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "app_id",
              "name"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "template"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build for a platform",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "platform",
            "label": "Platforms",
            "description": "Leave empty for all platforms.",
            "type": "string",
            "position": 0,
            "multiple": true,
            "suggestions": [
              {
                "value": "android",
                "label": "Android"
              },
              {
                "value": "ios",
                "label": "iOS"
              },
              {
                "value": "browser",
                "label": "Browser"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "release",
            "label": "Release build",
            "type": "boolean",
            "option": [
              "--release"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug build",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "device",
            "label": "Device",
            "type": "boolean",
            "option": [
              "--device"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "emulator",
            "label": "Emulator",
            "type": "boolean",
            "option": [
              "--emulator"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "debug",
            "label": "Debug",
            "fields": [
              "platform",
              "debug",
              "verbose"
            ],
            "required": [
              "platform"
            ],
            "set": {
              "debug": [
                true
              ]
            }
          },
          {
            "id": "release",
            "label": "Release",
            "fields": [
              "platform",
              "release",
              "verbose"
            ],
            "required": [
              "platform"
            ],
            "set": {
              "release": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "platform",
              "debug",
              "release"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "device",
              "emulator",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run on a device or emulator",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "platform",
            "label": "Platforms",
            "description": "Leave empty for all platforms.",
            "type": "string",
            "position": 0,
            "multiple": true,
            "suggestions": [
              {
                "value": "android",
                "label": "Android"
              },
              {
                "value": "ios",
                "label": "iOS"
              },
              {
                "value": "browser",
                "label": "Browser"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "release",
            "label": "Release build",
            "type": "boolean",
            "option": [
              "--release"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug build",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "device",
            "label": "Device",
            "type": "boolean",
            "option": [
              "--device"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "emulator",
            "label": "Emulator",
            "type": "boolean",
            "option": [
              "--emulator"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "debug",
            "label": "Debug",
            "fields": [
              "platform",
              "debug",
              "verbose"
            ],
            "required": [
              "platform"
            ],
            "set": {
              "debug": [
                true
              ]
            }
          },
          {
            "id": "release",
            "label": "Release",
            "fields": [
              "platform",
              "release",
              "verbose"
            ],
            "required": [
              "platform"
            ],
            "set": {
              "release": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "platform",
              "debug",
              "release"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "device",
              "emulator",
              "verbose"
            ]
          }
        ]
      }
    ]
  }
}
