ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ui renders small, dependency-free terminal messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	Out     io.Writer
	Err     io.Writer
	Color   bool
	Quiet   bool
	Verbose bool
}

UI writes human readable progress and diagnostics.

func New

func New() *UI

New returns a UI bound to stdout and stderr.

func (*UI) Debug

func (u *UI) Debug(format string, args ...any)

Debug prints a line only in verbose mode.

func (*UI) Detail

func (u *UI) Detail(format string, args ...any)

Detail prints an indented detail line.

func (*UI) Error

func (u *UI) Error(format string, args ...any)

Error prints an error to stderr.

func (*UI) Info

func (u *UI) Info(format string, args ...any)

Info prints an informational line.

func (*UI) Raw

func (u *UI) Raw(format string, args ...any)

Raw prints unadorned text to stdout.

func (*UI) Step

func (u *UI) Step(format string, args ...any)

Step prints a top-level step.

func (*UI) Success

func (u *UI) Success(format string, args ...any)

Success prints a successful result.

func (*UI) Warn

func (u *UI) Warn(format string, args ...any)

Warn prints a warning to stderr.

Jump to

Keyboard shortcuts

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