help

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Charple     = lipgloss.Color("#6B50FF")
	Pony        = lipgloss.Color("#FF4FBF")
	Cheeky      = lipgloss.Color("#FF79D0")
	Charcoal    = lipgloss.Color("#3A3943")
	Squid       = lipgloss.Color("#858392")
	Smoke       = lipgloss.Color("#BFBCC8")
	Guac        = lipgloss.Color("#12C78F")
	Ash         = lipgloss.Color("#DFDBDD")
	Cherry      = lipgloss.Color("#FF388B")
	BrightGreen = lipgloss.Color("#A6E22E")
	DarkGreen   = lipgloss.Color("#5F8700")
	Cardinal    = lipgloss.Color("#D70000")
	Watermelon  = lipgloss.Color("#FF5F87")
	Basil       = lipgloss.Color("#0CB37F")
	Anchovy     = lipgloss.Color("#719AFC")
)

Functions

func Printer

func Printer(styles Styles) kong.HelpPrinter

Printer creates a custom help printer with lipgloss styling

Types

type ColorScheme

type ColorScheme struct {
	Title       color.Color
	Command     color.Color
	Flag        color.Color
	Argument    color.Color
	Description color.Color
	Default     color.Color
	Section     color.Color
	Error       color.Color
	Success     color.Color
	Muted       color.Color
	Heading     color.Color
}

ColorScheme defines colors for different help elements and reporting

func ANSI256ColorScheme

func ANSI256ColorScheme(c lipgloss.LightDarkFunc) ColorScheme

ANSI256ColorScheme returns a color scheme using ANSI256 colors for better terminal compatibility

func DefaultColorScheme

func DefaultColorScheme(c lipgloss.LightDarkFunc) ColorScheme

DefaultColorScheme returns a color scheme adapted from charm fang theme

type Styles

type Styles struct {
	Title       lipgloss.Style
	Command     lipgloss.Style
	Flag        lipgloss.Style
	Argument    lipgloss.Style
	Description lipgloss.Style
	Default     lipgloss.Style
	Section     lipgloss.Style
	Error       lipgloss.Style
	Success     lipgloss.Style
	Muted       lipgloss.Style
	Heading     lipgloss.Style
}

Styles contains all the lipgloss styles for help output and reporting

func DefaultStyles

func DefaultStyles() Styles

DefaultStyles returns the default styled theme, automatically detecting color support

func NewStyles

func NewStyles(scheme ColorScheme) Styles

NewStyles creates a new Styles instance from a color scheme

func (Styles) FormatMCPStderr added in v0.4.1

func (s Styles) FormatMCPStderr(line string) string

FormatMCPStderr formats an MCP server stderr line with consistent styling

Jump to

Keyboard shortcuts

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