/sled

Time tracker for Geeks

Primary LanguageGoApache License 2.0Apache-2.0

Sled - Time tracker for Geeks

  • A CLI alternative to Harvest, provides interactive time tracking
  • Provides a way to create and manage timesheet to share with your employers or to track for personal todos
  • Ability to analyse how you spend your time, to make a summary of how your day was, and to reflect how the time was spent to a finer detail
  • Code is written with Clean Architecture principles

Features:

  • All data is stored as SQLite file in ~/.sled/sled_db, can be quickly explored using SQlite browser
  • Ability to track time with a timer
  • Export data as CSV/JSON
  • Fine control over different config

Usage:

sled-prompt

FAQ:

How can i make DB migrations if i make changes to Entity ?

  • If you wanted to make changes to DB, sled comes with gorm and automigration enabled, simply change the required fields in Entity/add new ones, restart the application, db will be auto-migrated. NOTE: Gorm can add new columns, entities, change existing types, but as of version Gorm v1.23.2, existing columns can't be deleted. So if a perfect migration is important to you, then you need to write manual migrations. In future i would add scripts and flows for it.

How can i backup my data ?

  • Database is located in ~/.sled folder, you can manually copy it, or you can run the script/bkp-d.sh after configuring the correct path backup inside the script