Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreitf1 committed Feb 8, 2024
1 parent b394f6e commit 29b1892
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 29b1892

Please sign in to comment.