cli/cmd/ctp/main.go
spooky 49382da8d1
chore: update feat-better-logger with dev (#32) (#38)
Co-authored-by: bashbunni <bashbunni.io@gmail.com>
Co-authored-by: ghostx31 <68803793+ghostx31@users.noreply.github.com>
Co-authored-by: Dukk <48651837+DakshG07@users.noreply.github.com>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
2022-11-17 19:23:13 +05:30

22 lines
702 B
Go

package main
import (
"github.com/caarlos0/log"
"github.com/catppuccin/cli/internal/cli"
"github.com/charmbracelet/lipgloss"
)
func init() {
log.Styles = [...]lipgloss.Style{
log.DebugLevel: lipgloss.NewStyle().Foreground(lipgloss.Color("#a6adc8")).Bold(true), // Subtext0
log.InfoLevel: lipgloss.NewStyle().Foreground(lipgloss.Color("#89b4fa")).Bold(true), // Blue
log.WarnLevel: lipgloss.NewStyle().Foreground(lipgloss.Color("#f9e2af")).Bold(true), // Yellow
log.ErrorLevel: lipgloss.NewStyle().Foreground(lipgloss.Color("#f38ba8")).Bold(true), // Red
log.FatalLevel: lipgloss.NewStyle().Foreground(lipgloss.Color("#f38ba8")).Bold(true), // Red
}
}
func main() {
cli.Execute()
}