Differentiate between "today" and no argument
new-day today
should work like new-day tomorrow
, except that it is for today.
When no argument is given, this also means "today", but the start time could be adjusted. The conditions would be:
- no argument given (
!$ARGV[0]
) - file does not exist yet (and must be created)
- it is before noon
Besides the time being adjusted, using the organisation's time registration API (if existing) to clock in would be ideal.
In other words, a simple new-day
could automatically do sequentially
- adjust time
- commit file as it is (with commit message clocked in or so)
- API call to company's registration system