arguments

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 4

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.

func ApplyPathArg

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

ApplyPathArg applies the value of the path given in the command line 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