Documentation
¶
Index ¶
- Variables
- func DeprecateWarn(ctx *config.Context)
- func FlagConfigFile(cmd *cobra.Command, dest *string)
- func FlagErrorWrap(err error) error
- func FlagErrorf(format string, args ...any) error
- func IsUserCancellation(err error) bool
- func LoadConfig(path string) (*config.Project, error)
- func SetCommonContext(ctx *config.Context, common CommonOptions)
- func SetCommonFlags(cmd *cobra.Command, common *CommonOptions)
- func TimedRunE(verb string, runef func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error
- type CommonOptions
- type ExitError
- type FlagError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BoldStyle = lipgloss.NewStyle().Bold(true)
)
View Source
var ErrCancelError = errors.New("CancelError")
ErrCancelError signals user-initiated cancellation
View Source
var ErrPendingError = errors.New("PendingError")
ErrPendingError signals nothing failed but something is pending
View Source
var ErrSilentError = errors.New("SilentError")
ErrSilentError is an error that triggers exit code 1 without any error messaging
Functions ¶
func DeprecateWarn ¶
func FlagConfigFile ¶
func FlagErrorWrap ¶
FlagErrorWrap returns a new FlagError that wraps the specified error.
func FlagErrorf ¶
Error unrelated to usage FlagErrorf returns a new FlagError that wraps an error produced by fmt.Errorf(format, args...).
func IsUserCancellation ¶
func SetCommonContext ¶
func SetCommonContext(ctx *config.Context, common CommonOptions)
func SetCommonFlags ¶
func SetCommonFlags(cmd *cobra.Command, common *CommonOptions)
Types ¶
type CommonOptions ¶
Click to show internal directories.
Click to hide internal directories.