Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 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 RequireNoArguments(c *cobra.Command, args []string) + func SignToken(secretID string, secretKey string) (string, error) + 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 Factory interface + GatewayClient func() gatewayv1.GatewayHTTPClient + GetOptions func() *clioptions.Options + Login func() (token string, err error) + UserCenterClient func() usercenterv1.UserCenterHTTPClient + func NewFactory(opts *clioptions.Options) Factory + type ValidateOptions struct + EnableValidation bool