Watson icon indicating copy to clipboard operation
Watson copied to clipboard

Add an option to report command to view time for each day

Open unclesnottie opened this issue 9 years ago • 4 comments

The current report command gives totals for each project for the entire date range. It would be very helpful to have an option flag which would give totals for each day in the day range. An example usage & output would look like:

$ watson report --daily
Mon 05 May 2014 -> Wed 07 May 2014

Mon 05 May 2014
  apollo11 - 1h 22m 20s
          [brakes    0h 53m 18s]
          [module    0h 41m 41s]

  hubble - 8h 38m 17s
          [camera        8h 38m 17s]
  Daily Total: 10h 00m 37s

Tue 06 May 2014
  voyager1 - 11h 45m 13s
          [antenna     5h 53m 57s]
          [generators  9h 04m 58s]
          [probe      10h 14m 29s]
          [sensors    10h 30m 26s]
  Daily Total: 11h 45m 13s

Wed 07 May 2014
  voyager2 - 16h 16m 09s
          [antenna     7h 05m 50s]
          [generators 12h 20m 29s]
          [probe      12h 20m 29s]
          [sensors    11h 23m 17s]
  Daily Total: 16h 16m 09s

Grand Total: 38h 01m 59s

unclesnottie avatar Jun 21 '16 13:06 unclesnottie

I think we should improve the output readability, but your proposal is relevant to me.

jmaupetit avatar Jun 21 '16 14:06 jmaupetit

:+1: I think this would be a nice feature, but hidden behind a flag and an option.

k4nar avatar Jun 22 '16 08:06 k4nar

The more options the report and log commands grow, the more I'm thinking, there should be an extra script watson-report or sth similar.

SpotlightKid avatar Jun 23 '16 18:06 SpotlightKid

I also think this is a nice feature

sfrique avatar Oct 27 '20 19:10 sfrique