first commit

This commit is contained in:
2026-07-03 08:32:41 +00:00
commit df7649f34d
30 changed files with 4104 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
package main
import (
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/muesli/termenv"
"github.com/honeypeer/cli-viz/internal/config"
"github.com/honeypeer/cli-viz/internal/ui"
)
func main() {
cfg, err := config.Load()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
if cfg.NoColor {
os.Setenv("NO_COLOR", "1")
lipgloss.SetColorProfile(termenv.Ascii)
}
m := ui.NewModel(cfg)
p := tea.NewProgram(m, tea.WithAltScreen(), tea.WithMouseCellMotion())
if _, err := p.Run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}