From da2f0216546f91f8e70c373b6a231195181f0e86 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 28 Oct 2023 16:46:39 +0100 Subject: [PATCH] ;tools:bake:lastweek: improvements --- bake | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/bake b/bake index be83e183e..75af7145b 100755 --- a/bake +++ b/bake @@ -155,11 +155,24 @@ bin() { # Show last week info, useful for TWIH (sm's at least). lastweek() { - tt bal hledger -DTS -b '7 days ago' + echo "hledger time last 7 days including today (this should be run on a Friday):" + tt bal hledger -DTS -b '6 days ago' --drop 2 echo - tt print hledger -b '7 days ago' | grep -E '^[^ ]|hledger' + echo "By activity type:" + tt bal hledger -DTS -b '6 days ago' --pivot t --alias c=cleanup/fixing --alias e=enhancement --alias s=support --alias l=learning | tail +1 + echo + echo "Time log details:" + tt print hledger -b '6 days ago' | grep -E '^[^ ]|hledger' + echo + echo "main repo:" + git log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="6 days ago" --reverse + echo + echo "site repo:" + git -C site log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="6 days ago" --reverse + echo + echo "finance repo:" + git -C finance log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="6 days ago" --reverse echo - git log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="7 days ago" --reverse } if declare -f "$1" > /dev/null; then "$@"; else usage; fi