Skip to content

Small script in Go to round toggl entries up to full half hours and which starts always at full hour.

License

Notifications You must be signed in to change notification settings

RaVbaker/toggl-rounder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toggl-rounder

Small script in Go to round Toggl entries up to full half hours and that starts always at full hour.

How to build?

Run standard go build command.

To build all versions for release please run ./build.sh.

How to use it?

Usage of ./toggl-rounder:
  -api-key secret-key
    	Toggl API KEY secret-key, can also be provided via $TOGGL_API_KEY environment variable
  -colors
    	Display colorful output in Terminal (default true)
  -debug
    	Print debugging output of API calls
  -dry
    	Unless set to false it doesn't update records in Toggl (default true)
  -remaining string
    	Decides on what to do with remaining time. Possible options: ["keep" "round_half" "round_up"] (default "keep")
  -version
    	Print the version
    	

Plus please ensure you've setup TOGGL_API_KEY environment variable or provided the -api-key parameter so it would know how to connect to the Toggl API.

Full command to run update:

TOGGL_API_KEY=toggl-s3cret ./toggl-rounder -dry=false -remaining round_up


Enjoy!

(c) Rafal "RaVbaker" Piekarski 2019

License? as specified in LICENSE file.

About

Small script in Go to round toggl entries up to full half hours and which starts always at full hour.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published