CLI Interface to Xrono
Isotope11 has just released a command line interface to the Xrono time tracking app. It allows you to manage tickets and enter time straight from the command line. Its still in the very early stages, but I wanted to get a post out about it early.
You will most likely want to put this in your global gemset if you're using rvm.
rvm use 1.9.2@global gem install xcli
You can repeat this step for all your rubies that you use.
xcli uses the .xronorc file in your home directory to figure out what xrono to use and what your credentials are. Here is a sample.
--- url: http://www.xrono.org email: email@example.com password: '123456'
Once that is in place, you need to specify a git repo url per project in xrono. Xcli currently checks origin's git repo url to relate to a project in xrono. Type git remote -v and copy the git url next to origin. Paste this into the git repo url field on the project edit page in xrono and save.
Your project is now setup to use xcli.
To get a list of commands type
xcli Tasks: xcli clients # list clients xcli enter_time # enter time to current ticket based on git repo and branch xcli new_ticket # create new ticket based on git repo and branch xcli projects # list projects xcli status # show information about the current user xcli ticket # show current ticket based on git repo and branch
Once you are in a feature branch you will want to check and see if there is a ticket in xrono associated with that branch.
If no ticket is listed we need to add one
xcli new_ticket --estimated_hours=0 --description="some ticket" --name="some ticket"
Now use xcli ticket to make sure it worked
To enter time against that ticket
xcli enter_time --hours=5 --message="I did lots of awesome things"
Adam has worked with Isotope 11 for 4 years and has been a professional software developer for over 12 years. He has been lead developer on multiple Fortune 500 projects. He is the author of "Beginning Rails 4" which was published by Apress in September 2013.