;dev:bake lastweek

This commit is contained in:
Simon Michael 2023-10-20 08:34:57 +01:00
parent 03f757204b
commit edeb906922

10
bake
View File

@ -14,6 +14,7 @@ Commands:
./bake relfiles - symlink important files temporarily in .relfiles/
./bake prep VERSION - prepare this release on today's date
./bake bin - push the current branch to CI to generate binaries
./bake lastweek - show last week info useful for TWIH
prep does the following:
- autocreates and switches to the appropriate release branch
@ -152,6 +153,15 @@ bin() {
run git push -f github HEAD:binaries
}
# Show last week info, useful for TWIH (sm's at least).
lastweek() {
tt bal hledger -DTS -b '7 days ago'
echo
tt print hledger -b '7 days ago' | grep -E '^[^ ]|hledger'
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
# ** notes