mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;tools:bake:lastweek: improvements
This commit is contained in:
parent
2ba321885d
commit
da2f021654
19
bake
19
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
|
||||
|
Loading…
Reference in New Issue
Block a user