1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

we dont need no procrastination

This commit is contained in:
2022-09-13 21:01:32 +02:00
parent 41ecca8411
commit f41ddb654a

View File

@@ -26,7 +26,10 @@ in {
echo "Usage: $0 TODO_ID" >&2 echo "Usage: $0 TODO_ID" >&2
exit 1 exit 1
} }
${pkgs.todoman}/bin/todo edit "$1" --due "+ 1 day" todo_id=$1
new_timestamp=$(${pkgs.todoman}/bin/todo --porcelain show "$todo_id" | ${pkgs.jq}/bin/jq '.due + 24 * 60 * 60')
new_date=$(${pkgs.coreutils}/bin/date +"%Y-%m-%d %H:%M" -d "@$new_timestamp")
${pkgs.todoman}/bin/todo edit "$todo_id" --due "$new_date"
'') '')
]; ];