Added header to stats

This commit is contained in:
マリウス 2020-10-17 01:33:21 +01:00
parent 5101c97f7c
commit 12f226c324
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F

View file

@ -4,6 +4,7 @@ import (
"os" "os"
"fmt" "fmt"
"time" "time"
"strings"
"github.com/spf13/cobra" "github.com/spf13/cobra"
// "github.com/shopspring/decimal" // "github.com/shopspring/decimal"
// "github.com/gookit/color" // "github.com/gookit/color"
@ -36,8 +37,9 @@ var statsCmd = &cobra.Command{
weeknumber0 = weeknumber - 1 weeknumber0 = weeknumber - 1
previousWeek := cal.GetOutputForWeekCalendar(oneWeekAgo, month0, weeknumber0) previousWeek := cal.GetOutputForWeekCalendar(oneWeekAgo, month0, weeknumber0)
fmt.Printf("%s\n", OutputAppendRight(thisWeek, previousWeek, 16))
fmt.Printf("\n%s\n\n", strings.ToUpper(today.Month().String()))
fmt.Printf("%s\n\n\n", OutputAppendRight(thisWeek, previousWeek, 16))
fmt.Printf("%s\n", cal.GetOutputForDistribution()) fmt.Printf("%s\n", cal.GetOutputForDistribution())
return return