mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
23 lines
359 B
Go
23 lines
359 B
Go
package ui
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
"github.com/charmbracelet/lipgloss"
|
|
"github.com/taigrr/gico/ui/graph"
|
|
)
|
|
|
|
func InteractiveGraph() {
|
|
m := graph.New()
|
|
df := lipgloss.NewDoeFoot()
|
|
m = m.UpdateDoeFoot(df)
|
|
|
|
p := tea.NewProgram(m)
|
|
if err := p.Start(); err != nil {
|
|
fmt.Printf("Error: %v", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|