flags

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LogLevel Describe app log level
	LogLevel string
	// Slient enable slient mode
	Slient bool
)
View Source
var (
	// ShowVersion display app version
	ShowVersion bool
	// Version Describe app version
	Version string
)

Functions

func BindFlags

func BindFlags(cmd *cobra.Command, v *viper.Viper)

Types

type Post

type Post struct {
	Requests
	Variables           map[string]string
	VariablesFromFile   map[string]string
	FilePath            string
	ExitFailIfFail      bool
	ExitFailIfCondition map[string]string
}

type Requests

type Requests struct {
	URL       string
	UserAgent string
	Headers   map[string]string
	// Retry count
	Retry int
	// Retry delay in seconds
	RetryDelay int
}

Jump to

Keyboard shortcuts

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