ui

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeDiff

func ColorizeDiff(diff string) string

ColorizeDiff adds ANSI colors to a unified diff: hunk headers cyan, additions green, deletions red. File headers (---/+++) are colored with the deletion/addition colors, respectively.

func IsTTY

func IsTTY(w io.Writer) bool

IsTTY reports whether w is an interactive terminal.

Note: any character device (e.g. /dev/null) reports as a TTY.

Types

type Progress added in v0.1.2

type Progress struct {
	// contains filtered or unexported fields
}

func StartProgress added in v0.1.2

func StartProgress(writer io.Writer, label string, enabled bool) *Progress

func (*Progress) Stop added in v0.1.2

func (p *Progress) Stop()

Jump to

Keyboard shortcuts

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