{
  "id": "browser-sync",
  "name": "Browsersync",
  "description": "Keep multiple browsers and devices in sync when building websites.",
  "homepage": "https://browsersync.io",
  "executables": [
    "browser-sync"
  ],
  "commands": {
    "format": 1,
    "label": "Start Browsersync",
    "description": "Serve a directory or proxy a server and reload browsers on file changes. Only common options are offered.",
    "quality": "ai-draft",
    "base": "fig:browser-sync",
    "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/browser-sync.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "start"
        ],
        "label": "Start Browsersync",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/browser-sync.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "server",
            "label": "Serve current directory",
            "type": "boolean",
            "option": [
              "--server",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "proxy",
            "label": "Proxy an existing server",
            "description": "Give the host of the server to proxy, e.g. localhost:8080.",
            "type": "string",
            "option": [
              "--proxy",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "files",
            "label": "Files to watch",
            "description": "Paths or glob patterns to watch for changes.",
            "type": "string",
            "option": [
              "--files",
              "-f"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "index",
            "label": "Index file",
            "type": "string",
            "option": [
              "--index"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "directory",
            "label": "Directory listing",
            "type": "boolean",
            "option": [
              "--directory"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "single",
            "label": "Single-page app fallback",
            "type": "boolean",
            "option": [
              "--single"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "https",
            "label": "HTTPS",
            "type": "boolean",
            "option": [
              "--https"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tunnel",
            "label": "Public tunnel URL",
            "type": "boolean",
            "option": [
              "--tunnel"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "open",
            "label": "Open in browser",
            "description": "Which URL to open automatically.",
            "type": "enum",
            "option": [
              "--open"
            ],
            "choices": [
              {
                "value": "local",
                "label": "Local"
              },
              {
                "value": "external",
                "label": "External"
              },
              {
                "value": "tunnel",
                "label": "Tunnel"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "static",
            "label": "Serve a static site",
            "fields": [
              "server",
              "files",
              "port"
            ],
            "required": [
              "server"
            ],
            "set": {
              "server": [
                true
              ]
            }
          },
          {
            "id": "proxy",
            "label": "Proxy a dev server",
            "fields": [
              "proxy",
              "files",
              "port"
            ],
            "required": [
              "proxy"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "server",
              "proxy",
              "files",
              "port"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "index",
              "directory",
              "single",
              "https",
              "tunnel",
              "open",
              "config"
            ]
          }
        ]
      }
    ]
  }
}
