Documentation
¶
Overview ¶
Package ui provides user-facing terminal messaging for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
// Writer is the output destination. Defaults to os.Stderr.
Writer io.Writer
// ProgramName is the prefix for messages. Defaults to "devlore".
ProgramName string
// Silent suppresses all output when true.
Silent bool
// Color enables ANSI color codes. Defaults to true.
Color bool
}
Provider provides terminal status messaging.
+devlore:access=immediate
func NewProvider ¶
func (*Provider) Error ¶
Error reports a non-fatal problem to the user.
Parameters:
- msg: the error message to display.
func (*Provider) Fail ¶
Fail prints an error message and returns an error.
Parameters:
- msg: the error message to display and return.
Returns:
- error: an error wrapping msg.
func (*Provider) Note ¶
Note informs the user of progress.
Parameters:
- msg: the informational message to display.
Click to show internal directories.
Click to hide internal directories.