display

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Output formatting flags globally accessible
	GlobalFormat string = "text"
	GlobalSilent bool   = false
)

Functions

func Divider

func Divider()

func EmailEvent

func EmailEvent(id, from, subject, otp, link string, timestamp string)

func Error

func Error(msg string)
func Header(title string)

func Info

func Info(msg string)

func IsSilent added in v0.1.13

func IsSilent() bool

func List

func List(items []string)

func MessageContent

func MessageContent(data map[string]interface{})

func Output added in v0.1.13

func Output(data interface{}) bool

Output Structured output for JSON or CSV formats. Returns true if output was handled (format was json or csv).

func PlanBadge

func PlanBadge(plan string) string

func PlanGate

func PlanGate(requiredPlan string, feature string)
func PrintInlineLogo()

PrintInlineLogo prints a compact single-line logo for command headers

func PrintLogo()

PrintLogo prints the full logo + wordmark on first login

func Step

func Step(n int, total int, msg string)

func Success

func Success(msg string)

func Table

func Table(rows []Row)

func TableBadge

func TableBadge(label, value string) string

TableBadge returns a formatted string with a badge and value

func Waiting

func Waiting(msg string)

func Warn

func Warn(msg string)

Types

type Row

type Row struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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