You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Currently, as a user, I need to call hours and use s to start/stop a task.
In some cases (e.g. integration with other tools) I want to start or stop tasks via a command instead of an interactive terminal.
Is your feature request related to a problem? Please describe.
For example I want to create an shell script that starts/stops a task. That's currently not possible (or I couldn't find the documentation which is also possible).
Additional context
I also have a proposal for this how this could look like.
Additionally to the existing commands (active, reports, stats) an new command can be added called task.
Add an argument for the command like -id where you need to provide the task id which should be used.
Alternative could be something like -name or so.
Add a second argument -s to define if the task should be started or stopped (same functionality as pressing s in the interactive UI).
If the task is currently running and it's been called with -s an additional parameter -c is required to stop this task. This -c is for comment and you need to provide a comment for the task there.
Here is an example on how this could look like.
With an -id argument to start a task:
hours task -id 1 -s
To stop:
hours task -id -s -c "Working on the new feature xyz"
Bonus could be, if I start a task while another is already running it should stop the other (with the required -c argument) and start the provided one like this assuming there task 1 is currently running:
hours task -id 2 -s -c "Working on the new feature xyz"
This will stop task 1 with the comment Working on the new feature xyz and creates a new session for task 2.
Let me know if you need anything else :)
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Currently, as a user, I need to call
hours
and uses
to start/stop a task.In some cases (e.g. integration with other tools) I want to start or stop tasks via a command instead of an interactive terminal.
Is your feature request related to a problem? Please describe.
For example I want to create an shell script that starts/stops a task. That's currently not possible (or I couldn't find the documentation which is also possible).
Additional context
I also have a proposal for this how this could look like.
Additionally to the existing commands (
active
,reports
,stats
) an new command can be added calledtask
.Add an argument for the command like
-id
where you need to provide the task id which should be used.Alternative could be something like
-name
or so.Add a second argument
-s
to define if the task should be started or stopped (same functionality as pressings
in the interactive UI).If the task is currently running and it's been called with
-s
an additional parameter-c
is required to stop this task. This-c
is forcomment
and you need to provide a comment for the task there.Here is an example on how this could look like.
With an
-id
argument to start a task:To stop:
hours task -id -s -c "Working on the new feature xyz"
Bonus could be, if I start a task while another is already running it should stop the other (with the required
-c
argument) and start the provided one like this assuming there task1
is currently running:hours task -id 2 -s -c "Working on the new feature xyz"
This will stop task
1
with the commentWorking on the new feature xyz
and creates a new session for task2
.Let me know if you need anything else :)
The text was updated successfully, but these errors were encountered: