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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/wscat.ts" license = "MIT" [[commands.field]] id = "connect" label = "Connect to URL" type = "url" option = ["--connect", "-c"] sources = ["fig"] [[commands.field]] id = "listen" label = "Listen on port" type = "integer" option = ["--listen", "-l"] sources = ["fig"] [[commands.field]] id = "header" label = "Header (name:value)" type = "string" option = ["--header", "-H"] multiple = true sources = ["fig"] [[commands.field]] id = "origin" label = "Origin" type = "string" option = ["--origin", "-o"] sources = ["fig"] [[commands.field]] id = "subprotocol" label = "Subprotocol" type = "string" option = ["--subprotocol", "-s"] sources = ["fig"] [[commands.field]] id = "execute" label = "Command after connecting" type = "string" option = ["--execute", "-x"] effect = "exec" sources = ["fig"] [[commands.field]] id = "no_check" label = "Skip certificate check" type = "boolean" option = ["--no-check", "-n"] sources = ["fig"] [[commands.field]] id = "slash" label = "Slash commands" type = "boolean" option = ["--slash"] sources = ["fig"] [[commands.field]] id = "no_color" label = "No color" type = "boolean" option = ["--no-color"] sources = ["fig"] [[commands.task]] id = "connect" label = "Connect" fields = ["connect", "header", "origin", "subprotocol", "execute", "no_check", "slash", "no_color"] required = ["connect"] [[commands.group]] id = "basic" label = "Basic" fields = ["connect", "header", "origin", "subprotocol", "execute", "no_check", "slash", "no_color"]