{
  "id": "capacitor",
  "name": "Capacitor",
  "description": "The Capacitor command-line interface, used to develop Capacitor apps.",
  "homepage": "https://capacitorjs.com",
  "executables": [
    "capacitor"
  ],
  "commands": {
    "format": 1,
    "label": "Capacitor project",
    "description": "Add platforms, sync web assets and run on a device. Run from the root of a Capacitor project.",
    "quality": "ai-draft",
    "base": "fig:capacitor",
    "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/capacitor.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "add"
        ],
        "label": "Add a platform",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/capacitor.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "platform",
            "label": "Platform",
            "type": "enum",
            "position": 0,
            "choices": [
              {
                "value": "android",
                "label": "Android"
              },
              {
                "value": "ios",
                "label": "iOS"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "add",
            "label": "Add a native platform",
            "fields": [
              "platform"
            ],
            "required": [
              "platform"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "platform"
            ]
          }
        ]
      },
      {
        "path": [
          "sync"
        ],
        "label": "Sync web assets and plugins",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/capacitor.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "platform",
            "label": "Platform",
            "description": "Leave empty to sync every platform.",
            "type": "enum",
            "position": 0,
            "choices": [
              {
                "value": "android",
                "label": "Android"
              },
              {
                "value": "ios",
                "label": "iOS"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "inline",
            "label": "Inline JS source maps",
            "description": "Allows debugging an Android WebView in Chromium based browsers.",
            "type": "boolean",
            "option": [
              "--inline"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "deployment",
            "label": "Podfile.lock deployment mode",
            "description": "Podfile.lock is not deleted and pod install uses --deployment.",
            "type": "boolean",
            "option": [
              "--deployment"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "sync",
            "label": "Sync all platforms",
            "fields": [
              "platform"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "platform",
              "inline",
              "deployment"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run on a device",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/capacitor.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "platform",
            "label": "Platform",
            "type": "enum",
            "position": 0,
            "choices": [
              {
                "value": "android",
                "label": "Android"
              },
              {
                "value": "ios",
                "label": "iOS"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "list",
            "label": "List target devices",
            "type": "boolean",
            "option": [
              "--list"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target",
            "label": "Target device",
            "type": "string",
            "option": [
              "--target"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run on a target",
            "fields": [
              "platform",
              "target"
            ],
            "required": [
              "platform"
            ]
          },
          {
            "id": "list",
            "label": "List targets",
            "fields": [
              "platform",
              "list"
            ],
            "required": [
              "platform"
            ],
            "set": {
              "list": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "platform",
              "target",
              "list"
            ]
          }
        ]
      }
    ]
  }
}
