diff --git a/README.md b/README.md index 6d72594..69be01d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Util to show current worktime and possible leave times with Matrix integration. To download and install the utility execute the following commands: ``` -go install github.com/sbreitf1/gohome@latest +go install github.com/sbreitf1/gohome@v1.4.0 ``` Now start it with `gohome` from command line. diff --git a/example.png b/example.png index b3a80f5..8331a00 100644 Binary files a/example.png and b/example.png differ diff --git a/login.png b/login.png index 21e13da..364bba7 100644 Binary files a/login.png and b/login.png differ diff --git a/main.go b/main.go index 116499e..93615e1 100644 --- a/main.go +++ b/main.go @@ -154,7 +154,7 @@ func process() error { return err } - console.Println("-------------------------------------------") + console.Println("-----------------------------------------------------") if cacheOK { console.Printlnf("time now: %s (cache from %s)", time.Now().Format("15:04"), cacheTime.Format("15:04:05")) } else { @@ -193,11 +193,11 @@ func process() error { breakTime3 := t3.Sub(startTime) - (9 * time.Hour) breakTime4 := t4.Sub(startTime) - (10 * time.Hour) - console.Println("-------------------------------------------") + console.Println("-----------------------------------------------------") console.Printlnf("06:00 at %s %s(%s break)%s", t1.Format("15:04"), colors.BreakInfo, formatDurationMinutes(breakTime1), colorEnd) console.Printlnf("09:00 at %s %s(%s break)%s", t3.Format("15:04"), colors.BreakInfo, formatDurationMinutes(breakTime3), colorEnd) console.Printlnf("10:00 at %s %s(%s break)%s", t4.Format("15:04"), colors.BreakInfo, formatDurationMinutes(breakTime4), colorEnd) - console.Println("-------------------------------------------") + console.Println("-----------------------------------------------------") console.Printlnf("go home (%s) at %s%s%s %s(%s break)%s", formatDurationMinutes(targetTime), colors.LeaveTime, t2.Format("15:04"), colorEnd, colors.BreakInfo, formatDurationMinutes(breakTime2), colorEnd) if *argReminder {