Documentation
¶
Index ¶
- Constants
- Variables
- func Box(format string, a ...any)
- func Boxln(format string, a ...any)
- func DisplayFeed(feed []store.FeedViewPost, cursor string)
- func DisplayJSON(data any) error
- func DisplayProfileHeader(profile *store.ActorProfile)
- func Error(format string, a ...any)
- func ErrorBox(format string, a ...any)
- func ErrorBoxln(format string, a ...any)
- func Errorln(format string, a ...any)
- func Info(format string, a ...any)
- func Infoln(format string, a ...any)
- func StyledHelpPrinter(w io.Writer, templ string, data any)
- func Subtitle(format string, a ...any)
- func Subtitleln(format string, a ...any)
- func Success(format string, a ...any)
- func Successln(format string, a ...any)
- func Title(format string, a ...any)
- func Titleln(format string, a ...any)
- func Warning(format string, a ...any)
- func Warningln(format string, a ...any)
Constants ¶
View Source
const CommandHelpTemplate = `` /* 485-byte string literal not displayed */
CommandHelpTemplate uses the default template structure with styling
View Source
const RootCommandHelpTemplate = `` /* 1048-byte string literal not displayed */
RootCommandHelpTemplate uses the default template structure with styling functions
View Source
const SubcommandHelpTemplate = `` /* 591-byte string literal not displayed */
SubcommandHelpTemplate uses the default template structure with styling
Variables ¶
View Source
var ( PrimaryStyle = newStyle().Foreground(lipgloss.Color(utils.ColorPrimary)) AccentStyle = newStyle().Foreground(lipgloss.Color(utils.ColorAccent)) ErrorStyle = newStyle().Foreground(lipgloss.Color(utils.ColorError)) TextStyle = newStyle().Foreground(lipgloss.Color(utils.ColorText)) TitleStyle = newPBoldStyle(0, 1).Foreground(lipgloss.Color(utils.ColorAccent)) SubtitleStyle = newEmStyle().Foreground(lipgloss.Color(utils.ColorPrimary)) SuccessStyle = newBoldStyle().Foreground(lipgloss.Color(utils.ColorPrimary)) WarningStyle = newBoldStyle().Foreground(lipgloss.Color(utils.ColorAccent)) InfoStyle = newStyle().Foreground(lipgloss.Color(utils.ColorText)) BoxStyle = newPStyle(1, 2).Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color(utils.ColorPrimary)) ErrorBoxStyle = newPStyle(1, 2).Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color(utils.ColorError)) ListItemStyle = newStyle().Foreground(lipgloss.Color(utils.ColorText)).PaddingLeft(2) SelectedItemStyle = newBoldStyle().Foreground(lipgloss.Color(utils.ColorAccent)).PaddingLeft(2) HeaderStyle = newPBoldStyle(0, 1).Foreground(lipgloss.Color(utils.ColorPrimary)) CellStyle = newPStyle(0, 1).Foreground(lipgloss.Color(utils.ColorText)) TableBaseStyle = newPStyle(0, 1) TableHeaderStyle = newPStyle(0, 1).Foreground(lipgloss.Color(utils.ColorPrimary)).Bold(true) TableBorderStyle = newStyle().Foreground(lipgloss.Color(utils.ColorAccent)) TableRowEvenStyle = newPStyle(0, 1).Foreground(lipgloss.Color("252")) TableRowOddStyle = newPStyle(0, 1).Foreground(lipgloss.Color("245")) )
Functions ¶
func DisplayFeed ¶
func DisplayFeed(feed []store.FeedViewPost, cursor string)
DisplayFeed shows a formatted list of posts from a feed
func DisplayProfileHeader ¶
func DisplayProfileHeader(profile *store.ActorProfile)
DisplayProfileHeader shows a formatted profile summary
func ErrorBoxln ¶
ErrorBoxln prints error content in a styled error box with a newline
func StyledHelpPrinter ¶
StyledHelpPrinter is a custom help printer that uses our color system It extends the default printer with custom styling functions
func Subtitleln ¶
Subtitleln prints a formatted subtitle with a newline
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.