Created
May 9, 2012 05:44
-
-
Save gcmurphy/2642202 to your computer and use it in GitHub Desktop.
Weekly Status Report - Status report using taskwarrior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Recipient="[email protected]" | |
Subject="Status: $(date --date="7 days ago" +'%y-%m-%d')" | |
LastWeek=`task export status:completed end.after:$(date --date="7 days ago" "+%m/%d/%Y") |json_reformat | grep description | sed -e "s/\"description\"\: \"/\* /" -e "s/\",$//"` | |
ThisWeek=`task export status:pending |json_reformat | grep description | sed -e "s/\"description\"\: \"/\* /" -e "s/\",$//"` | |
Body=`echo -e "Last Week:\n\n${LastWeek}\n\nThis Week:\n\n${ThisWeek}\n\nGrant."` | |
thunderbird -compose "to='$Recipient',subject='$Subject',body='$Body'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment