dominikbraun / timetrace

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

Report filter module #140 #143

Closed KonstantinGasser closed 3 years ago

KonstantinGasser commented 3 years ago

closing #140

sample output:

// no filter by module but project has multiple modules
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|  PROJECT  |  MODULE  |         DATE          |  START  |  END  |  BILLABLE  |   TOTAL   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
| test      | mod1     | Sunday, 27. June 2021 | 18:11   | 18:11 | no         |           |
+           +----------+-----------------------+---------+-------+------------+-----------+
|           | mod1     | Sunday, 27. June 2021 | 21:53   | 22:53 | no         |           |
+           +----------+-----------------------+---------+-------+------------+-----------+
|           | mod2     | Sunday, 27. June 2021 | 21:54   | 22:54 | no         |           |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|           |          |                       |         |       | ∑          | 2h 0min   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|                                                                  TOTAL      | 2H 0MIN   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
// filter by mod1 for project with modules
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|  PROJECT  |  MODULE  |         DATE          |  START  |  END  |  BILLABLE  |   TOTAL   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
| test      | mod1     | Sunday, 27. June 2021 | 18:11   | 18:11 | no         |           |
+           +----------+-----------------------+---------+-------+------------+-----------+
|           | mod1     | Sunday, 27. June 2021 | 21:53   | 22:53 | no         |           |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|           |          |                       |         |       | ∑          | 1h 0min   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+
|                                                                  TOTAL      | 1H 0MIN   |
+-----------+----------+-----------------------+---------+-------+------------+-----------+