Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapStatusError ¶
Types ¶
type CLI ¶
type CLI interface { Streams SetQuiet(bool) // Regular print to stdout. PrintOut(string, ...any) // Regular print to stderr. PrintErr(string, ...any) // Print to stderr unless quiet else - discard. PrintAux(string, ...any) SetConfig(*config.Config) Config() *config.Config SetClient(*api.Client) Client() *api.Client Confirm(title, affirmative, negative string) bool Input(title, prompt string, value *string, validate func(string) error) error Version() string }
type StatusError ¶
type StatusError struct {
// contains filtered or unexported fields
}
func NewStatusError ¶
func NewStatusError(code int, format string, a ...any) StatusError
func (StatusError) Code ¶
func (e StatusError) Code() int
func (StatusError) Error ¶
func (e StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.