display

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Heading

func Heading(text string, opts StyleOptions) string

Heading returns a styled heading string respecting the provided options.

func RenderBinaryInfo

func RenderBinaryInfo(w io.Writer, info *BinaryInfo, opts StyleOptions)

RenderBinaryInfo writes a friendly summary panel about the binary.

Types

type BinaryInfo

type BinaryInfo struct {
	Name           string
	Version        string
	SharedDir      string
	OverrideHint   string
	ConfigPath     string
	WatcherEnabled bool
	AutoApply      bool
	Tips           []string
}

BinaryInfo represents high-level metadata about the CLI binary.

type StyleOptions

type StyleOptions struct {
	EnableColor bool
}

StyleOptions control how BinaryInfo is rendered.

func StyleForWriter

func StyleForWriter(w io.Writer) StyleOptions

StyleForWriter infers reasonable style defaults for the supplied writer.

Jump to

Keyboard shortcuts

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