Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package ui provides the CLI's presentation and interactive task primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureHelp

func ConfigureHelp()

ConfigureHelp installs terminal-aware styling around urfave's default help renderer.

func ConfigureLogging

func ConfigureLogging(output io.Writer)

ConfigureLogging installs Charm's structured logger as the slog default.

func RunTask

func RunTask(ctx context.Context, label string, task func(context.Context) error) error

RunTask renders a Bubble Tea task screen while work runs asynchronously.

func RunTaskWithProgress added in v0.0.2

func RunTaskWithProgress(ctx context.Context, label string, task func(context.Context, func(string)) error) error

RunTaskWithProgress lets work report the current activity to the task screen.

func Size added in v0.0.2

func Size(bytes int64) string

Size formats an on-disk byte count using binary units.

Types

This section is empty.

Jump to

Keyboard shortcuts

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