feat: add resume and continue commands#720
Conversation
|
In the case of --continuous, it might make more sense to simply update the last task removing the end time. |
Great idea, I adjusted my commit accordingly. |
|
Linguistically, I would rather go for Some native speaker's view on this? |
|
Not a native speaker either but how about |
|
Sue, I can rebase and change the naming. I like |
I would still be in favour of
for an ongoing task. But we can also wait, until I asked a native speaker today. |
|
Thanks, sounds good! Let me know when you have decided and I should rebase! |
|
I think separate actions, The command line documentation, ie. Also, the list of options in |
Sounds reasonable, though I would not be in favor of "continue" and "resume", since they really sound like they are the same thing. Maybe "restart" is an option for the with-gap case? |
|
After consultation, But I am actually more with @GeraldJansen's proposal for separate The only argument to keep Anyway, I think the discussion went long enough. (Thanks for all the input!) And the person who actually implements the feature should be able now to make a sensible choice. |
ea53132 to
0180b08
Compare
|
Thanks for all that valuable feedback! I understand the different viewpoints and would like to make everyone happy because changes to the command line interface should indeed be thought through well ;) So I figure that I will further revise my PR to incorporate all your feedback! |
|
(Sorry, I misclicked and closed accidentally) Now, we should have all three behaviors implemented and documented:
I'm looking forward to further suggestions! |
|
Amended again to make flake8 happy as well. |
|
Automatically generated build artifacts for commit 43f03c1 (note: these links will expire after some time):
To test this PR, download and unzip the flatpak application above and then install with: |
|
@xai Sorry to be a bother but could you please add your new commands to the bash completion? |
Support resuming/continuing the last tracked activity. When `hamster resume` is called, the last tracked activity is started, i.e., the same activity is started again with the current start_time. If the `resume` command is called with the option `--no-gap`, the activity is started again with its previous end_time. If `hamster continue` is called, the last tracked activity continues to be tracked, i.e., its end_time is removed and there is no gap in the time tracking. Signed-off-by: Olaf Lessenich <olessenich@eclipsesource.com>
No problem at all! I now also complete the After rebasing to the current master, I re-tested my commands (i.e., Let me know if there is something else I can improve, @aquaherd! |
Support resuming the last tracked activity.
When
hamster resumeis called, the last tracked activity is started again with the current start_time.If
hamster resume --continuous(or short with-c) is called, the last tracked activity continues to be tracked, i.e., its end time is removed.