/days

bad habit tracker. reset counter when you fail.

Primary LanguageGo

A Counter of Days

 9 For all our days pass away under your wrath;
    we bring our years to an end like a sigh.
10 The years of our life are seventy,
    or even by reason of strength eighty;
yet their span[a] is but toil and trouble;
    they are soon gone, and we fly away.
11 Who considers the power of your anger,
    and your wrath according to the fear of you?
12 So teach us to number our days
    that we may get a heart of wisdom.

                                    -Psalm 90:9-12 (ESV)

Assumptions

Humans live averagely for 70 years

Features

  • days journal write
    • create journal entry
  • days journal read [start date] [end date]
    • no args: show entries for the day by the hour
    • start date: show all entries after this date by the hour
    • start date, end date: show all entries between these date by the hour
  • days life start "<birth-date>" NEW
    • sets your birth date
  • days life end [-v] NEW
    • prints summary of days spent alive and estimated days remaining (add the -v flag to see some more details)
  • days track <activity>
    • tracks an activity/habit
  • days since "<activity>"
    • prints days since tracking started
  • days list
    • list all activities and day since tracking started
  • days reset "<activity>"
    • reset tracker for given activity