Files
gico/cmd/mgfetch/mgfetch.go

27 lines
388 B
Go

package main
import (
"fmt"
"time"
git "github.com/go-git/go-git/v5"
"github.com/taigrr/gico/commits"
)
type Repo git.Repository
func main() {
year := time.Now().Year() - 1
authors := []string{"Groot"}
mr, err := commits.GetMRRepos()
if err != nil {
panic(err)
}
gfreq, err := mr.FrequencyChan(year, authors)
if err != nil {
panic(err)
}
fmt.Print(gfreq.String())
}