dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
668 stars 75 forks source link

Idea: what's the proper way to input time duration when we add records? #181

Open RedemptionC opened 2 years ago

RedemptionC commented 2 years ago

for now, I need to input start time and end time,it's somewhat tedious how do you do this ? maybe we could add a flag to enable us adding records by just providing a start time or a end time,plus a time duration?

dominikbraun commented 2 years ago

So do you have those two possibilities in mind?

By start + end time:

timetrace create record <HH:MM> <HH:MM>

By start time + duration:

timetrace create record <HH:MM> --duration 1h30m

If so, we could add the --duration/-d option and require that option if only one command argument - the start time - is given. However, create record should only be used to create belated records that you've forgotten to track, so in most cases you probably will know the end time.