Documentation ¶
Index ¶
- Constants
- func AuthPrint(i interface{})
- func AuthPrintf(format string, a ...interface{})
- func CheckArguments(cmd *cobra.Command, args []string, min int, max int)
- func CheckIntegerBounds(cmd *cobra.Command, name string, val int, min int, max int)
- func Error(err interface{})
- func ErrorFatal(err interface{})
- func ErrorFatalf(base string, args ...interface{})
- func Errorf(base string, args ...interface{})
- func FlagNotProvidedError(cmd *cobra.Command, flagName string)
- func GetBoolFlagValue(cmd *cobra.Command, flag string) bool
- func GetFloat64FlagValue(cmd *cobra.Command, flag string) float64
- func GetInt64FlagValue(cmd *cobra.Command, flag string) int64
- func GetIntFlagValue(cmd *cobra.Command, flag string) int
- func GetStringFlagValue(cmd *cobra.Command, flag string) string
- func GetStringSliceFlagValue(cmd *cobra.Command, flag string) []string
- func InvalidArgument(arg string)
- func InvalidInteger(name string, value string, fatal bool)
- func IsTTY() bool
- func MalformedUsageError(cmd *cobra.Command, err interface{})
- func MustReadFile(path string) []byte
- func PlainPrint(i interface{})
- func PlainPrintf(format string, a ...interface{})
- func Print(i interface{})
- func PrintKV(depth int, k interface{}, v interface{})
- func PrintS(depth int, v interface{})
- func Printf(format string, a ...interface{})
- func PromptBool(text string) bool
- func PromptInt64(text string) (int64, error)
- func PromptSelection(text string, options interface{}) int
- func PromptString(text string) string
- func ReadInputFile(basedir string, filename string) (io.ReadCloser, error)
- func RequireFlags(cmd *cobra.Command, flags ...string)
- func SetupBars(bars []BarInfo) (*mpb.Progress, []*mpb.Bar)
- type BarInfo
- type StatusBar
Constants ¶
View Source
const (
NoMaxArgs = -1
)
Variables ¶
This section is empty.
Functions ¶
func AuthPrintf ¶
func AuthPrintf(format string, a ...interface{})
func CheckIntegerBounds ¶
func ErrorFatal ¶
func ErrorFatal(err interface{})
func ErrorFatalf ¶
func ErrorFatalf(base string, args ...interface{})
func FlagNotProvidedError ¶
func GetStringSliceFlagValue ¶
func InvalidArgument ¶
func InvalidArgument(arg string)
func InvalidInteger ¶
func MalformedUsageError ¶
func MustReadFile ¶
func PlainPrint ¶
func PlainPrint(i interface{})
func PlainPrintf ¶
func PlainPrintf(format string, a ...interface{})
func PromptBool ¶
func PromptInt64 ¶
func PromptSelection ¶
func PromptString ¶
func ReadInputFile ¶
func ReadInputFile(basedir string, filename string) (io.ReadCloser, error)
func RequireFlags ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.