flags

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package flags contains description of all command-line flags

Index

Constants

This section is empty.

Variables

View Source
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

View Source
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)

View Source
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)

View Source
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

View Source
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

View Source
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

View Source
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

View Source
var ReadConfigFlag = &cli.StringFlag{
	Name:    "config",
	Aliases: []string{"K"},
	Usage:   "Read config from TOML FILE (\"-\" for STDIN)",
}

ReadConfigFlag allows to read options from config

View Source
var SaveConfigToFlag = &cli.StringFlag{
	Name:  "save-config",
	Usage: "Save current options to FILE (\"-\" for STDOUT)",
}

SaveToConfigFlag allows to save current options to config file

View Source
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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL