remove references to charm fork

This commit is contained in:
2023-01-31 00:40:21 -08:00
parent f17cc5e1d5
commit 90c0803638
9 changed files with 116 additions and 33 deletions

View File

@@ -5,14 +5,13 @@ import (
"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)
// df := lipgloss.NewDoeFoot()
// m = m.UpdateDoeFoot(df)
p := tea.NewProgram(m)
if err := p.Start(); err != nil {

View File

@@ -2,13 +2,12 @@ package graph
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/taigrr/gico/ui/graph/help"
)
type Graph struct {
Help help.Help
df lipgloss.DoeFoot
// df lipgloss.DoeFoot
}
func (g Graph) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
@@ -50,8 +49,8 @@ func New() Graph {
return g
}
func (g Graph) UpdateDoeFoot(df lipgloss.DoeFoot) Graph {
g.df = df
g.Help = g.Help.UpdateDoeFoot(df)
return g
}
//func (g Graph) UpdateDoeFoot(df lipgloss.DoeFoot) Graph {
// g.df = df
// g.Help = g.Help.UpdateDoeFoot(df)
// return g
//}

View File

@@ -2,16 +2,16 @@ package help
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
)
type Help struct {
df lipgloss.DoeFoot
// df lipgloss.DoeFoot
}
func (h Help) Update(m tea.Msg) (tea.Model, tea.Cmd) {
return h, nil
}
func (h Help) Init() tea.Cmd {
return nil
}
@@ -24,7 +24,7 @@ func New() Help {
return Help{}
}
func (h Help) UpdateDoeFoot(df lipgloss.DoeFoot) Help {
h.df = df
return h
}
//func (h Help) UpdateDoeFoot(df lipgloss.DoeFoot) Help {
// h.df = df
// return h
//}