Simple CLI that helps log time on JIRA issues.
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
brew install fetinin/tap/tlog
curl -sfL https://raw.githubusercontent.com/fetinin/tlog/master/install.sh | sh
go install github.com/fetinin/tlog@latest
go >= 1.18 required
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"
- 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/