Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.19 KB

File metadata and controls

50 lines (33 loc) · 1.19 KB

klogreport

A command-line tool that generates beautiful time tracking reports from klog files.

Features

  • Project Time Spent: Shows total time logged per project
  • Tags Time Spent: Aggregates time across all projects by tags
  • Tags per Project: Breaks down tag usage within each project
  • Daily Working Time: Shows daily time totals across all projects
  • Colorful bar charts with dynamic scaling
  • Automatic detection of .klg files in specified directory

Screenshot

screenshot

Installation

  1. Make sure you have klog installed
  2. Build the program:
    go build -o klogreport main.go

Usage

Set the KLOG_DIR environment variable to point to your klog files directory:

export KLOG_DIR=/path/to/your/klog/files
./klogreport

Or specify it inline:

KLOG_DIR=/path/to/your/klog/files ./klogreport

If KLOG_DIR is not set, it defaults to ~/klog.

Dependencies

  • klog - Must be installed and available in PATH
  • fatih/color - Terminal colors

License

MIT