projecthamster / hamster

GNOME time tracker
http://projecthamster.org
GNU General Public License v3.0
1.06k stars 250 forks source link

CLI: make it possible to start an activity with tags #352

Closed blipp closed 5 years ago

blipp commented 6 years ago

I am trying to write a Bash/whatever script that adds an activity including tags using Hamster's command line interface. So far I didn't succeed, and looking at the code, I have the suspicion that it's not possible at the moment. What I would like to do is something like:

hamster start Foo@Bar #Tag1 #Tag2 09:35 09:36

The following shall be serve as starting point for someone working on this (might actually be me, also, if I take the time):

The question for @elbenfreund might be: which of them is the right place to look at? Thanks for your work :) I am using Hamster since 2009, so yeah, I am quite happy with it already!

ederag commented 5 years ago

Thanks for the report and the pointers. The given links indicate that this issue is for the rewrite (hamster-cli) and should be moved to hamster-cli/issues.

For the current master of this legacy hamster repository, it is possible to start an activity with tags by enclosing the string in quotes:

src/hamster-cli start 'freeSoftware@diffusion #hamster'

(tested with the development version. For an installed version it would be hamster start ...)