display

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorCyan   = color.New(color.FgHiCyan, color.Bold)
	ColorPurple = color.New(color.FgHiMagenta, color.Bold)
	ColorOrange = color.New(color.FgYellow, color.Bold) // closest to #FFAA7F
	ColorGreen  = color.New(color.FgHiGreen, color.Bold)
	ColorRed    = color.New(color.FgHiRed, color.Bold)
	ColorBold   = color.New(color.Bold)
	ColorWhite  = color.New(color.FgHiWhite, color.Bold)
)

Functions

func Error

func Error(msg string)

Error prints a red error line to stderr.

func GistInfo

func GistInfo(desc, id, url string)

GistInfo pretty-prints gist metadata after create/update.

func ListTable

func ListTable(rows []GistRow)

ListTable renders a rich bordered table of gists.

func Prompt

func Prompt(msg string) string

Prompt prints a styled prompt and reads a trimmed line from stdin.

func Success

func Success(msg string)

Success prints a green success line.

Types

type GistRow

type GistRow struct {
	Index       string
	ID          string
	Description string
	URL         string
}

GistRow is one row for the list table.

Jump to

Keyboard shortcuts

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