TailorDev / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.41k stars 237 forks source link

[Feature Request] Ability to show the log for a given number of days or weeks instead of the current day or week. #503

Open chris114782 opened 1 year ago

chris114782 commented 1 year ago

When viewing the log, I don't have much use for viewing calendar periods like the current day, week or month, as we typically work in 2 week periods and this usually spans multiple calendar periods.

For example, if I want to see my time over the past 2 weeks on today, 10th May 2023, I have to use watson log --year as --month doesn't show the full period, but that then shows me months of logged work.

It would be great if watson log --day and watson log --week could take a number to show the range, otherwise I have to work out what the date is for the --from argument.

So for example

watson log --day 14 would show the last 14 days worth of logs.

watson log --week 2 would show the same