Files
iris-context/commands/sys/wscat.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

36 lines
1.7 KiB
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "wscat",
Description: "Communicate over websocket",
Options: []spec.Option{
{Name: "-c", Description: "Connect to a WebSocket server"},
{Name: "-V", Description: "Output the version number"},
{Name: "--auth", Description: "Add basic HTTP authentication header (--connect only)"},
{Name: "--ca", Description: "Specify a Certificate Authority (--connect only)"},
{Name: "--cert", Description: "Specify a Client SSL Certificate (--connect only)"},
{Name: "--host", Description: "Optional host"},
{Name: "--key", Description: "Specify a Client SSL Certificate's key (--connect only)"},
{Name: "--max-redirects", Description: "Maximum number of redirects allowed (--connect only) (default: 10)"},
{Name: "--no-color", Description: "Run without color"},
{Name: "--passphrase", Description: "Connect via a proxy. Proxy must support CONNECT method"},
{Name: "--slash", Description: "Set an HTTP header. Repeat to set multiple (--connect only) (default: [])"},
{Name: "-L", Description: "Follow redirects (--connect only)"},
{Name: "-l", Description: "Listen on port"},
{Name: "-n", Description: "Do not check for unauthorized certificates"},
{Name: "-o", Description: "Optional origin"},
{Name: "-p", Description: "Optional protocol version"},
{Name: "-P", Description: "Print a notification when a ping or pong is received"},
{Name: "-s", Description: "Optional subprotocol (default: [])"},
{Name: "-w", Description: "Wait given seconds after executing command"},
{Name: "-x", Description: "Execute command after connecting"},
{Name: "-h", Description: "Display help for command"},
},
})
}