mkdir -p ~/bin
wget https://github.com/Raphexion/chronos/releases/latest/download/chronos -O ~/bin/chronos
chmod +x ~/bin/chronos
Make sure you have working golang installation. Then run:
go install
It is possible to run chronos without a configuration file but it is not recommended. Chrons can generate a dummy config file for you, which will be placed in you home folder.
chronos --generate-config
If you look in the file you will see the following:
jira:
url: https://myJira.atlassian.net
mail: myLogin@example.com
apikey: 1234ABCD
username: myUserName
Create a api key in JIRA:
https://id.atlassian.com/manage-profile/security/api-tokens
Update the .yaml file with the correct key.
After you have corrected the configuration, simply type
chronos
===========================
Week 1
===========================
2018-01-01
AA-1234: 1.00
AA-1235: 2.00
-----------------
3.00
Total: 3.00
===========================
Week 2
===========================
2018-01-08
AA-1235: 3.00
------------------
3.00
Total: 3.00
./chronos --logwork --issue AA-1234 --minutes 20
./chronos --sprint