cmdx

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResponse

func CheckResponse(err error, expectedStatusCode int, response *http.Response)

func EnvVarExamplesHelpMessage

func EnvVarExamplesHelpMessage(name string) string

func ExactArgs added in v0.0.6

func ExactArgs(cmd *cobra.Command, args []string, min int)

func Fatalf

func Fatalf(message string, args ...interface{})

func FormatResponse

func FormatResponse(response interface{}) string

func MinArgs

func MinArgs(cmd *cobra.Command, args []string, min int)

func Must

func Must(err error, message string, args ...interface{})

func RangeArgs added in v0.0.6

func RangeArgs(cmd *cobra.Command, args []string, allowed []int)

func Version

func Version(gitTag, gitHash, buildTime *string) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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