ja-he / dayplan

A utility to plan and track your time.
MIT License
5 stars 1 forks source link

Allow excepting goals #40

Open ja-he opened 2 years ago

ja-he commented 2 years ago

A goal defines expected time spent. An example of this would be working hours over a workweek.

An exception to a goal excepts certain dates from the expectation. An example of this would be public holidays or sick leave.

Since the definitions for these groups of dates might get verbose and be repetitive between categories' goals, let's let the goal only name an exception

categories:
  name: work
  goal:
    workweek:
      monday: 8
      tuesday: 4
    except: [ 'public-holidays' ]

where then we define below

date-groups:
  'public-holidays':
    - 2022-12-24..2022-12-26
    - 2022-12-31