{
  "id": "wscat",
  "name": "wscat",
  "description": "Communicate over WebSocket.",
  "executables": [
    "wscat"
  ],
  "commands": {
    "format": 1,
    "label": "WebSocket client/server",
    "description": "Connect to a server or listen on a port.",
    "quality": "ai-draft",
    "base": "fig:wscat",
    "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/wscat.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "connect",
        "label": "Connect to URL",
        "type": "url",
        "option": [
          "--connect",
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "listen",
        "label": "Listen on port",
        "type": "integer",
        "option": [
          "--listen",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "header",
        "label": "Header (name:value)",
        "type": "string",
        "option": [
          "--header",
          "-H"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "origin",
        "label": "Origin",
        "type": "string",
        "option": [
          "--origin",
          "-o"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "subprotocol",
        "label": "Subprotocol",
        "type": "string",
        "option": [
          "--subprotocol",
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "execute",
        "label": "Command after connecting",
        "type": "string",
        "option": [
          "--execute",
          "-x"
        ],
        "effect": "exec",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_check",
        "label": "Skip certificate check",
        "type": "boolean",
        "option": [
          "--no-check",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "slash",
        "label": "Slash commands",
        "type": "boolean",
        "option": [
          "--slash"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_color",
        "label": "No color",
        "type": "boolean",
        "option": [
          "--no-color"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "connect",
        "label": "Connect",
        "fields": [
          "connect",
          "header",
          "origin",
          "subprotocol",
          "execute",
          "no_check",
          "slash",
          "no_color"
        ],
        "required": [
          "connect"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "connect",
          "header",
          "origin",
          "subprotocol",
          "execute",
          "no_check",
          "slash",
          "no_color"
        ]
      }
    ]
  }
}
