lcfd / trak

Keep a record of the time you dedicate to your projects.
https://usetrak.com
GNU Affero General Public License v3.0
11 stars 2 forks source link

[create session] Add option to add session, just with minutes and hours #54

Closed lcfd closed 6 months ago

lcfd commented 7 months ago

trak create session <PROJECT_ID:STR> -h <INT> -m <INT>

This command takes the minutes and hours and subtract them from date time now.

This new workflow is determined by the absence of one of those flags:

WHY?

Because it's a faster method to enter a session when you have just finished the work. It's just the opposite of the command:

trak create session myproject --when 2024-03-28 10:20 -h 1 -m 12

This command will add the minutes and hours to the starting time (when). --today works the same way.

Extra