Documentation
¶
Index ¶
- Variables
- func Box(lines ...string) string
- func Bucket(bucket types.Bucket) string
- func CommonPrefix(commonPrefix types.CommonPrefix) string
- func Date(date time.Time) string
- func Error(err error) string
- func HttpStatus(code int, msg string) string
- func HttpStatusOrError(code int, err error) string
- func Object(object types.Object) string
- func SupportsBox() bool
- func Swatch(label string, fg, bg *lipgloss.Color) string
- func Title(title string) string
- type Meta
- type Metadata
- type Number
- type Palette
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActivePalette = DefaultPalette DefaultPalette = Palette{ TextPrimary: lipgloss.Color("014"), TextMuted: lipgloss.Color("008"), TextInverted: lipgloss.Color("005"), Surface: lipgloss.Color("240"), SurfaceAlt: lipgloss.Color("008"), SurfaceHover: lipgloss.Color("007"), Accent: lipgloss.Color("003"), AccentMuted: lipgloss.Color("012"), Success: lipgloss.Color("010"), Warning: lipgloss.Color("011"), Error: lipgloss.Color("009"), Border: lipgloss.Color("015"), } )
View Source
var ( InfoCodeStyle = codeStyle. Foreground(ActivePalette.TextPrimary). Render InfoMsgStyle = lipgloss.NewStyle(). Foreground(ActivePalette.TextPrimary). Render SuccessCodeStyle = codeStyle. Foreground(ActivePalette.Success). Render SuccessMsgStyle = lipgloss.NewStyle(). Foreground(ActivePalette.TextPrimary). Render WarnCodeStyle = codeStyle. Foreground(ActivePalette.Warning). Render WarnMsgStyle = lipgloss.NewStyle(). Foreground(ActivePalette.TextPrimary). Render ErrCodeStyle = codeStyle. Foreground(ActivePalette.Error). Render ErrMsgStyle = lipgloss.NewStyle(). Foreground(ActivePalette.Accent). Render TitleStyle = lipgloss.NewStyle(). Width(80). Align(lipgloss.Center). Margin(1, 0). Bold(true). Foreground(ActivePalette.Accent). Background(ActivePalette.SurfaceAlt). Render HelpStyle = lipgloss.NewStyle(). Foreground(ActivePalette.TextMuted). Render DateStyle = lipgloss.NewStyle(). Width(25). Foreground(ActivePalette.TextMuted). Render SizeStyle = lipgloss.NewStyle(). Width(20). Foreground(ActivePalette.AccentMuted). Render DirStyle = lipgloss.NewStyle(). Width(60). Foreground(ActivePalette.Accent). Render FileStyle = lipgloss.NewStyle(). Width(60). Foreground(ActivePalette.TextPrimary). Render )
Functions ¶
func CommonPrefix ¶
func CommonPrefix(commonPrefix types.CommonPrefix) string
func HttpStatus ¶
func HttpStatusOrError ¶
func SupportsBox ¶
func SupportsBox() bool
Types ¶
type Palette ¶
type Palette struct {
TextPrimary lipgloss.Color
TextMuted lipgloss.Color
TextInverted lipgloss.Color
Surface lipgloss.Color
SurfaceAlt lipgloss.Color
SurfaceHover lipgloss.Color
Accent lipgloss.Color
AccentMuted lipgloss.Color
Success lipgloss.Color
Warning lipgloss.Color
Error lipgloss.Color
Border lipgloss.Color
}
Click to show internal directories.
Click to hide internal directories.