/work-stats

command line based job timing tool.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

work-stats

Command Line Based Job Timing Tool.

build

go build

Note: Fixed yaml configuration file is stats.yaml in the current directory

command usage

# get online
stats up
# get offline
stats down
# export as csv by year and month
stats out
# aggregate the record by year and month
stats
# list the record by year and month
stats ls

args usage

Usage of ./stats:
  -m int
     stats month (default current month)
  -y int
     stats year (default current year)

configuration

db: sqlite3_db_path
project: project_name
cursor: current_up_id

list

Project Year Month Up Down
cornerstone 2023 10 1698466065 1698466107
cornerstone 2023 10 1698465826 1698466057

aggregate

Project Year Month Hours
cornerstone 2023 10 5.00