Todocli
curl -o todo.tar.gz https://eatthe.bar/2022/todocli.tar.gz
todo cli is a fast and powerful command line task tracker
this pipeline shares current tasks on my websites
it creates doing.html
from todo.txt
and uses pandoc to convert the text file to html
displaying only tasks with priority (A)
using google material design
- view doing.html this can be scraped
- view doing.txt - this could be used with curl
todocli:
stage: deploy
tags:
- sshwww
only:
- schedules
script:
- cd todocli
- ./todo.sh listpri a > export.txt
- pandoc -f markdown -t html5 export.txt -o doing.html
- ls
- cat doing.html
- docker cp doing.html eatthebar:/usr/share/nginx/html/2022/
here are some alias shortcuts that allow me to use todo cli in any project
# add to .bash_aliases
alias t='clear && ./todocli/todo.sh'
alias d='clear && t listpri a'
alias snooze='clear && t listpri'
alias done='clear && cat ./todocli/done.txt'
alias tedit='vim ./todocli/todo.txt'
alias tall='clear && find . -name "todo.txt" | xargs grep "+"'
alias tpri='clear && find . -name "todo.txt" | xargs grep "(A"'
alias tprib='clear && find . -name "todo.txt" | xargs grep "(B"'
alias tpric='clear && find . -name "todo.txt" | xargs grep "(C"'
alias thelp='clear && ./todocli/todo.sh shorthelp'
change log
2022-02-24
added a zipped download with instructions
2022-01-28
adding an html template
- pass the tasks to an environment variable
- a template engine called cookie uses that variable to insert the tasks into an html template