Skip to content

Instantly share code, notes, and snippets.

@gcmurphy
Created May 9, 2012 05:44
Show Gist options
  • Save gcmurphy/2642202 to your computer and use it in GitHub Desktop.
Save gcmurphy/2642202 to your computer and use it in GitHub Desktop.
Weekly Status Report - Status report using taskwarrior
#!/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