flags

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBodyFlag

func AddBodyFlag(fs *pflag.FlagSet, value *string)

AddBodyFlag adds the '--body' flag to the given set of command line flags.

func AddDebugFlag

func AddDebugFlag(fs *pflag.FlagSet)

AddDebugFlag adds the '--debug' flag to the given set of command line flags.

func AddHeaderFlag

func AddHeaderFlag(fs *pflag.FlagSet, values *[]string)

AddHeaderFlag adds the '--header' flag to the given set of command line flags.

func AddParameterFlag

func AddParameterFlag(fs *pflag.FlagSet, values *[]string)

AddParameterFlag adds the '--parameter' flag to the given set of command line flags.

func ApplyBodyFlag

func ApplyBodyFlag(request *sdk.Request, value string) error

ApplyBodyFlag applies the value of the '--body' command line flag to the given request.

func ApplyHeaderFlag

func ApplyHeaderFlag(request interface{}, values []string)

ApplyHeaderFlag applies the value of the '--header' command line flag to the given request.

func ApplyParameterFlag

func ApplyParameterFlag(request interface{}, values []string)

ApplyParameterFlag applies the value of the '--parameter' command line flag to the given request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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