mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
remove xmain
This commit is contained in:
@@ -8,32 +8,8 @@ import (
|
|||||||
"github.com/charmbracelet/bubbles/key"
|
"github.com/charmbracelet/bubbles/key"
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
"github.com/taigrr/gico/commits"
|
"github.com/taigrr/gico/commits"
|
||||||
"github.com/taigrr/gico/graph/term"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func xmain() {
|
|
||||||
n := time.Now()
|
|
||||||
repoPaths, err := commits.GetMRRepos()
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
freq, err := repoPaths.Frequency(n.Year(), []string{"Groot"})
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
wfreq, err := repoPaths.GetWeekFreq([]string{"Groot"})
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
fmt.Println("week:")
|
|
||||||
fmt.Println(term.GetWeekUnicode(wfreq))
|
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
fmt.Println("year:")
|
|
||||||
fmt.Println(term.GetYearUnicode(freq))
|
|
||||||
}
|
|
||||||
|
|
||||||
type errMsg error
|
type errMsg error
|
||||||
|
|
||||||
type model struct {
|
type model struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user