ui

package
v0.1.0-dev.20260222175125 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// 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 user-facing terminal messaging.

func (*Provider) Error

func (p *Provider) Error(msg string)

Error reports a non-fatal problem to the user.

func (*Provider) Fail

func (p *Provider) Fail(msg string) error

Fail prints an error message and returns an error.

func (*Provider) Note

func (p *Provider) Note(msg string)

Note informs the user of progress.

func (*Provider) Success

func (p *Provider) Success(msg string)

Success confirms completion to the user.

func (*Provider) Warn

func (p *Provider) Warn(msg string)

Warn alerts the user to a potential issue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL