Versions in this module Expand all Collapse all v0 v0.1.0 Jun 13, 2026 Changes in this version + func DefaultErrorHandler(w io.Writer, styles Styles, err error) + func Execute(ctx context.Context, root *cobra.Command, options ...Option) error + func StyleExamples(c *cobra.Command, styles Styles) []string + func StyleUsage(c *cobra.Command, styles Program, complete bool) string + type Codeblock struct + Base lipgloss.Style + Comment lipgloss.Style + Program Program + Text lipgloss.Style + type ColorScheme struct + Argument color.Color + Base color.Color + Codeblock color.Color + Command color.Color + Comment color.Color + Dash color.Color + Description color.Color + DimmedArgument color.Color + ErrorDetails color.Color + ErrorHeader [2]color.Color + Flag color.Color + FlagDefault color.Color + Help color.Color + Program color.Color + QuotedString color.Color + Title color.Color + func AnsiColorScheme(c lipgloss.LightDarkFunc) ColorScheme + func DefaultColorScheme(c lipgloss.LightDarkFunc) ColorScheme + func DefaultTheme(isDark bool) ColorScheme + type ColorSchemeFunc = func(lipgloss.LightDarkFunc) ColorScheme + type ErrorHandler = func(w io.Writer, styles Styles, err error) + type HelpContext struct + Styles Styles + Width int + Writer *colorprofile.Writer + type HelpRenderer func(cmd *cobra.Command, ctx HelpContext) + type Option func(*settings) + func WithColorSchemeFunc(cs ColorSchemeFunc) Option + func WithCommit(commit string) Option + func WithErrorHandler(handler ErrorHandler) Option + func WithHelpRenderer(renderer HelpRenderer) Option + func WithNotifySignal(signals ...os.Signal) Option + func WithTheme(theme ColorScheme) Option + func WithVersion(version string) Option + func WithoutCompletions() Option + func WithoutManpage() Option + func WithoutVersion() Option + type Program struct + Argument lipgloss.Style + Command lipgloss.Style + DimmedArgument lipgloss.Style + Flag lipgloss.Style + Name lipgloss.Style + QuotedString lipgloss.Style + type Styles struct + Codeblock Codeblock + ErrorHeader lipgloss.Style + ErrorText lipgloss.Style + FlagDefault lipgloss.Style + FlagDescription lipgloss.Style + Program Program + Span lipgloss.Style + Text lipgloss.Style + Title lipgloss.Style