Versions in this module Expand all Collapse all v0 v0.1.2 Jul 14, 2024 Changes in this version + const DefaultErrorExitCode + var ErrExit = fmt.Errorf("exit") + func AddCleanFlags(cmd *cobra.Command) + func BehaviorOnFatal(f func(string, int)) + func CheckDiffErr(err error) + func CheckErr(err error) + func CombineRequestErr(resp gorequest.Response, body string, errs []error) error + func DefaultBehaviorOnFatal() + func DefaultSubCommandRun(out io.Writer) func(c *cobra.Command, args []string) + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagInt32(cmd *cobra.Command, flag string) int32 + func GetFlagInt64(cmd *cobra.Command, flag string) int64 + func GetFlagString(cmd *cobra.Command, flag string) string + func GetFlagStringArray(cmd *cobra.Command, flag string) []string + func GetFlagStringSlice(cmd *cobra.Command, flag string) []string + func IsFilenameSliceEmpty(filenames []string, directory string) bool + func IsSiblingCommandExists(cmd *cobra.Command, targetCmdName string) bool + func ManualStrip(file []byte) []byte + func MultilineError(prefix string, err error) string + func MultipleErrors(prefix string, errs []error) string + func ReadPipeInput() string + func RequireNoArguments(c *cobra.Command, args []string) + func StandardErrorMessage(err error) (string, bool) + func TableWriterDefaultConfig(table *tablewriter.Table) *tablewriter.Table + func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error + func Warning(cmdErr io.Writer, newGeneratorName, oldGeneratorName string) + type ValidateOptions struct + EnableValidation bool v0.1.1 Jul 7, 2024