diff --git a/bin/gitfetch/gitfetch.go b/bin/gitfetch/gitfetch.go index 89f1c2a..1f5c974 100644 --- a/bin/gitfetch/gitfetch.go +++ b/bin/gitfetch/gitfetch.go @@ -12,6 +12,9 @@ import ( ) func main() { + GetYear() +} +func GetYear() { r, err := git.PlainOpenWithOptions(".", &(git.PlainOpenOptions{DetectDotGit: true})) if err != nil { @@ -54,4 +57,5 @@ func main() { } } gterm.GetYearUnicode(freq[:]) + } diff --git a/go.mod b/go.mod index 56d4641..06819d3 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,6 @@ module github.com/taigrr/gico go 1.18 -replace github.com/taigrr/go-colorpallettes => ../go-colorpallettes - replace github.com/charmbracelet/bubbles => github.com/taigrr/bubbles v0.10.5 replace github.com/muesli/termenv => github.com/taigrr/termenv v0.11.2 @@ -39,7 +37,7 @@ require ( github.com/muesli/termenv v0.11.1 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/sergi/go-diff v1.1.0 // indirect - github.com/taigrr/go-colorpallettes v0.0.0-00010101000000-000000000000 // indirect + github.com/taigrr/simplecolorpalettes v0.9.6 // indirect github.com/xanzy/ssh-agent v0.3.0 // indirect golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect golang.org/x/net v0.0.0-20211118161319-6a13c67c3ce4 // indirect diff --git a/go.sum b/go.sum index 380ef39..c740987 100644 --- a/go.sum +++ b/go.sum @@ -86,6 +86,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/taigrr/lipgloss v0.5.1 h1:lzmrLEzXyR/AOP/zGPPuIlmNuBKX81F3gHqn3/8e+bc= github.com/taigrr/lipgloss v0.5.1/go.mod h1:EZLha/HbzEt7cYqdFPovlqy5FZPj0xFhg5SaqxScmgs= +github.com/taigrr/simplecolorpalettes v0.9.6 h1:eEFLPdI1o34t+YHs+QlgxcpN4zOg+5S3SlWt2EMS/6o= +github.com/taigrr/simplecolorpalettes v0.9.6/go.mod h1:MFLQqI3JOfSc+8GiO3amYfzBiozxITaQi+F1iEV8XpQ= github.com/taigrr/termenv v0.11.2 h1:oqZR08HjGIzFWml4ROmoFvWi3KRG4UZYTPRrI9/lrPA= github.com/taigrr/termenv v0.11.2/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs= github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI=