Documentation
¶
Index ¶
- func DetailMessage(err error, fallback string, sentinels ...error) string
- func FormatConsoleError(console Console, record Error) string
- func FormatConsoleWarning(console Console, record Warning) string
- func FormatError(record Error) string
- func FormatWarning(record Warning) string
- func WriteEnvelope(out io.Writer, command Command, context string, kind Kind, data any, ...) error
- type Command
- type Console
- type ConsoleStringFunc
- type Error
- type ErrorData
- type ExitCode
- type Format
- type Invocation
- type Kind
- type Options
- type Outcome
- type Renderer
- type Result
- type Style
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatConsoleError ¶
func FormatConsoleWarning ¶
func FormatError ¶
func FormatWarning ¶
Types ¶
type Console ¶
type Console struct {
Invocation Invocation
Color bool
}
func NewConsole ¶
func NewConsole(inv Invocation, color bool) Console
type Invocation ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
type Result ¶
type Result struct {
Kind Kind
Data any
ExitCode ExitCode
Warnings []Warning
ConsoleString ConsoleStringFunc
}
func ErrorResult ¶
func InvalidArgs ¶
func RuntimeError ¶
Click to show internal directories.
Click to hide internal directories.