Documentation ¶
Overview ¶
Package flags contains description of all command-line flags
Index ¶
Constants ¶
This section is empty.
Variables ¶
var HeadersFlag = altsrc.NewStringSliceFlag(&cli.StringSliceFlag{ Name: "header", Usage: "Pass custom header(s) to server. Also may be read from file with @file", Aliases: []string{"H"}, })
HeadersFlag allows to pass custom headers in websocket handshake request
var IgnorePingsFlag = altsrc.NewBoolFlag(&cli.BoolFlag{
Name: "ignore-pings",
Usage: "Do not send pong frames on received ping frames",
})
IgnorePingsFlag allows to drop "ping" frames from server (not response with "pong" frames)
var InsecureSSLFlag = altsrc.NewBoolFlag(&cli.BoolFlag{ Name: "insecure", Usage: "Allow insecure server connections when using SSL", Value: false, Aliases: []string{"k"}, })
InsecureSSLFLag allows to ignore certificate trust errors (eg for self-signed certificate)
var MessageAfterConnectFlag = altsrc.NewStringFlag(&cli.StringFlag{ Name: "data", Aliases: []string{"d"}, Usage: "Send a message to server after connection. Use @file notation to read from file or \"-\" to read from STDIN.", })
MessageAfterConnectFlag allows to send message to server after successful handshake
var OutputFlag = altsrc.NewStringFlag(&cli.StringFlag{ Name: "output", Aliases: []string{"o"}, Usage: "Write to FILE instead of STDOUT (\"-\" for STDOUT explicitly)", })
OutputFlag allows to save received frames to file or print to stdout
var PingPeriodFlag = altsrc.NewDurationFlag(&cli.DurationFlag{ Name: "ping-period", Usage: "Send ping frames every <period>", Aliases: []string{"P"}, Value: 0, })
PingPeriodFlag allows to configure period of sending "ping" frames
var ProxyURLFlag = altsrc.NewStringFlag(&cli.StringFlag{ Name: "proxy", Aliases: []string{"x"}, Usage: "[protocol://]host[:port] Use this proxy. Supported protocols: http, https, socks5", })
ProxyURLFlag allows to specify proxy address
var ReadConfigFlag = &cli.StringFlag{ Name: "config", Aliases: []string{"K"}, Usage: "Read config from TOML FILE (\"-\" for STDIN)", }
ReadConfigFlag allows to read options from config
var SaveConfigToFlag = &cli.StringFlag{
Name: "save-config",
Usage: "Save current options to FILE (\"-\" for STDOUT)",
}
SaveToConfigFlag allows to save current options to config file
var ShowHandshakeResponseFlag = altsrc.NewBoolFlag(&cli.BoolFlag{ Name: "include", Aliases: []string{"i"}, Usage: "Include handshake response (headers and body) to output", })
ShowHandshakeResponseFlag allows to save or print websocket handshake response
var TraceFlag = altsrc.NewStringFlag(&cli.StringFlag{
Name: "trace",
Usage: "Write a debug trace to FILE (\"-\" for STDOUT)",
})
TraceFlag allows to specify debug logs output
Functions ¶
This section is empty.
Types ¶
This section is empty.