Skip to content

fetinin/tlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⏱ Tlog - time saving utility

Simple CLI that helps log time on JIRA issues.

Usage

log 1h SCENTRE-5912      # log 1 hour into SCENTRE-5912 for today
log 1 5814               # log 1 hour into {{DefaultProject}}-5814
log 30m review           # log 30 minutes into task aliased "review"
log 1h review yesterday  # log 1 hour yesterday
log 1h review monday     # log 1 hour review for monday for current week
log 1h review mon        # log 1 hour review for monday for current week
log 1h review 22         # log 1 hour review for 22nd of current month
log 1h review 12.30      # log 1 hour review for 30st of December, current year
log 1h review 2022.12.31 # log 1 hour review for 31st of December, 2022

Install

MacOS

brew install fetinin/tap/tlog

Linux

curl -sfL https://raw.githubusercontent.com/fetinin/tlog/master/install.sh | sh

From source

go install github.com/fetinin/tlog@latest 

go >= 1.18 required

Configuration

Upon first run, utility will create config file called .time_logger_conf.toml at your home directory. You can edit config to set DefaultProject and add new issues aliases.

Config example:

cat ~/.time_logger_conf.toml
JiraURL = "https://company.jira.ru"
JiraLogin = "user.name"
JiraPassword = "password"
DefaultProject = "SCENTRE" # if you only specify JIRA issue number, this project will be used

[ TaskAliases ]
meeting = "INT-18" # aliases "meeting" to INT-18
review = "INT-24"

Things to do

  • Add config show, config set-alias, config set-project commands
  • Allow to log multiple days at once like tlog 1h review monday-friday
  • Automate releases with https://goreleaser.com/quick-start/