From 12f226c324f00d6370f689e514b13f7f0abf2fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sat, 17 Oct 2020 01:33:21 +0100 Subject: [PATCH] Added header to stats --- z/stats.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/z/stats.go b/z/stats.go index 9e0b580..ad2bc94 100644 --- a/z/stats.go +++ b/z/stats.go @@ -4,6 +4,7 @@ import ( "os" "fmt" "time" + "strings" "github.com/spf13/cobra" // "github.com/shopspring/decimal" // "github.com/gookit/color" @@ -36,8 +37,9 @@ var statsCmd = &cobra.Command{ weeknumber0 = weeknumber - 1 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()) return