Skip to content

netooo/tracking

Repository files navigation

TimeTracking CLI Client

Description

This program will let you use the time tracking in CLI.

And, the tracking data will be automatically entered into the Google Spread Sheet and Jira.

Usage

$ tracking --help
NAME:
   tracking - tracking CLI Client

USAGE:
   tracking [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
   list, l     Show task list
   add, a      Add task
   delete, d   Delete task
   start, s    Start task
   finish, f   Finish task
   current, c  Show current tracking
   log         Show tracking logs
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)

Demo (with fzf)

Add task

Add_task

Start task

Start_task

Finish task

Finish_task

Delete task

Delete_task

Show logs

Show_log

Install

To install, use go get:

$ go get github.com/netooo/tracking

Config

Google Spread Sheet

Set config in $HOME/.config/tracking/config.json

It has following parameters:

{
  "spread_sheet_id": "xxxxxxxxxxxxxxxxxxxxxxx", # favorite google spread sheet id
  "origin_date" : "2021-06-27",                 # first date in your sheet
  "origin_row" : "D"                            # row for the date
}

Set config in $HOME/.config/tracking/secret.json

Issue a google spreadsheet config and paste it:

{
  "type": "service_account",
  "project_id": "{your project id}",
  "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "private_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  <snip> 
}

Jira

Create Jira Token: https://id.atlassian.com/manage-profile/security/api-tokens

Set config in $HOME/.config/tracking/config.json

It has following parameters:

{
  "jira_name" : "{your email address}",
  "jira_token" : "{your token}",
  "jira_domain" : "{domain}" 
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published