Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2017 Changes in this version + const DefaultErrorExitCode + const RecommendedHomeDir + var ErrExit = fmt.Errorf("exit") + func BehaviorOnFatal(f func(string, int)) + func CheckErr(err error) + func CombineRequestErr(resp gorequest.Response, body string, errs []error) error + func DefaultBehaviorOnFatal() + 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 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 GetWideFlag(cmd *cobra.Command) bool + func IsFilenameEmpty(filenames []string) bool + func StandardErrorMessage(err error) (string, bool) + func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error + type Factory struct + Cool bool + Password string + Server string + Timeout int + Username string + func NewFactory() Factory + func (f *Factory) Auth() string + func (f *Factory) BindExternalFlags(flags *pflag.FlagSet) + func (f *Factory) BindFlags(flags *pflag.FlagSet) + func (f *Factory) Command() string + func (f *Factory) FlagSet() *pflag.FlagSet + func (f *Factory) Gorequest() *gorequest.SuperAgent