ui

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ui provides shared terminal styling for bgtask CLI output.

Index

Constants

This section is empty.

Variables

View Source
var (
	Green  = lipgloss.NewStyle().Foreground(lipgloss.Green)
	Red    = lipgloss.NewStyle().Foreground(lipgloss.Red)
	Yellow = lipgloss.NewStyle().Foreground(lipgloss.Yellow)
	Dim    = lipgloss.NewStyle().Faint(true)
	Bold   = lipgloss.NewStyle().Bold(true)

	// Label is for key-value output labels.
	Label = Dim
)

Functions

func StatusStyle

func StatusStyle(status string) lipgloss.Style

StatusStyle returns the appropriate style for a task status string. Accepts state names, display strings, and strings with duration suffixes (e.g., "running (5m)", "exited(1) (2m ago)").

Types

This section is empty.

Jump to

Keyboard shortcuts

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