Skip to content

aibor/timewarrior-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timewarrior-extensions

PkgGoDev Go Report Card Actions

Collections of timewarrior-extensions and a golang library for parsing input from timewarrior extension API.

Extensions

flextime

Sums time spent per day and calculates the difference to the daily target. The default is 8 hours. It can be changed by setting the config variable flextime.hours_per_day.

Install

After cloning the repo, build directly into your timewarrior extensions directory:

go build -o ~/.timewarrior/extensions/flextime ./cmd/flextime

Then run timew with flextime report:

timew flextime

The output looks like this. actual is the actual accounted time. target is the daily/total target. diff is the difference between actual and target.

          date    actual    target      diff
    2024-06-30      3:39      8:00     -4:20
    2024-07-08      0:06      8:00     -7:53
         total      3:45     16:00    -12:14

Golang library

The package twext implements basic functions for reading input from timewarrior as described in their docs. All of the extensions in this repository are built based on the library.

About

Timewarrior extensions golang library

Topics

Resources

License

Stars

Watchers

Forks

Languages