Skip to content

Commit

Permalink
shorthand for force-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreitf1 committed Feb 8, 2024
1 parent 29b1892 commit 896b158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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/[email protected].0
go install github.com/sbreitf1/[email protected].1
```

Now start it with `gohome` from command line.
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
argBreakTime = appMain.Flag("break", "Ignore actual break time and take input like '00:45' instead").Short('b').String()
argReminder = appMain.Flag("reminder", "Show desktop notification on target time").Short('r').Bool()
argVerbose = appMain.Flag("verbose", "Print every single step").Short('v').Bool()
argNoCache = appMain.Flag("no-cache", "Do not use existing cache and force refresh of entries").Bool()
argForceReload = appMain.Flag("force-reload", "Do not use existing cache and force refresh of entries").Short('f').Bool()
argCacheTimeSeconds = appMain.Flag("cache-time", "Max cache age in seconds").Default("600").Int()
argDumpColors = appMain.Flag("dump-colors", fmt.Sprintf("Populates %s/colors.json with the current colors", getConfigDir())).Bool()
currentState EntryType
Expand Down Expand Up @@ -59,7 +59,7 @@ func process() error {
var flexiTimeBalance time.Duration
var cacheTime time.Time
var cacheOK bool
if !*argNoCache {
if !*argForceReload {
verbosePrint("read cache")
var err error
entries, flexiTimeBalance, cacheTime, cacheOK, err = ReadCache()
Expand Down

0 comments on commit 896b158

Please sign in to comment.