mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
add df code for UI
This commit is contained in:
23
ui/bb.go
Normal file
23
ui/bb.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/taigrr/gico/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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user