gitgraph term and svg generation complete

This commit is contained in:
2022-06-19 15:53:12 -04:00
parent 64e1a55168
commit c29a30e687
7 changed files with 127 additions and 1 deletions

30
bin/cli/cli.go Normal file
View File

@@ -0,0 +1,30 @@
package main
import (
"fmt"
"math/rand"
"time"
"github.com/taigrr/gitgraph/term"
)
func init() {
rand.Seed(time.Now().UnixMilli())
}
func main() {
freq := []int{}
for i := 0; i < 7; i++ {
freq = append(freq, rand.Int())
}
fmt.Println("week:")
term.GetWeekUnicode(freq)
fmt.Println()
fmt.Println()
fmt.Println()
freq = []int{}
for i := 0; i < 365; i++ {
freq = append(freq, rand.Int())
}
fmt.Println("year:")
term.GetYearUnicode(freq)
}