modulepackage
0.0.0-20220221154811-081c2179cbc1
Repository: https://github.com/netooo/tracking.git
Documentation: pkg.go.dev
# README
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
Start task
Finish task
Delete task
Show logs
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}"
}
# Packages
No description provided by the author