flagx

package
v0.0.94 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetBool

func MustGetBool(cmd *cobra.Command, name string) bool

MustGetBool returns a bool flag or fatals if an error occurs.

func MustGetDuration added in v0.0.6

func MustGetDuration(cmd *cobra.Command, name string) time.Duration

MustGetDuration returns a time.Duration flag or fatals if an error occurs.

func MustGetInt added in v0.0.16

func MustGetInt(cmd *cobra.Command, name string) int

MustGetInt returns a int flag or fatals if an error occurs.

func MustGetString

func MustGetString(cmd *cobra.Command, name string) string

MustGetString returns a string flag or fatals if an error occurs.

func MustGetStringSlice added in v0.0.9

func MustGetStringSlice(cmd *cobra.Command, name string) []string

MustGetStringSlice returns a []string flag or fatals if an error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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