just
a command runner, that looks like Make
Created:
casey/just: 🤖 Just a command runner; manual.
Interesting use of Just – Create an Internal CLI using Just
This is my justfile
that I used to generate this file. I have almost deprecated the use of taskfile.
# Default recipe (similar to 'all' in Makefile)
default: full scrapbook calendar codefiles opml papers
here0:
./bin/mkhtmlindex ./content/tweetstorms > ./content/tweetstorms/here0.html
scrapbook:
bin/scraps.py
calendar:
bin/calendarview.py
c:
./sitebuild
full:
./sitebuild --full
sync:
/usr/bin/rsync -avz -d --delete-after -e ssh ./output/ myweb@surya.btbytes.com:/data/web/www.btbytes.com/www/
push:
git push origin master
serve:
cd output && python3 -m http.server 8004
setup:
python3 -m venv venv
venv/bin/pip install --upgrade pip setuptools wheel virtualenv
venv/bin/pip install -r requirements.txt
mkdir -p .cache
weekly:
bin/python3 weekly.py
pb:
bin/pinboard-to-sqlite posts backups/pinboard.db
codefiles:
pygmentize -O full,style=emacs,linenos=1,lineanchors=1 -f html -l python -o content/sitebuild.html sitebuild
pygmentize -O full,style=emacs,linenos=1,lineanchors=1 -f html -l lua -o content/filters.html pandoc/filters.lua
pygmentize -O full,style=emacs,linenos=1,lineanchors=1 -f html -l yaml -o content/Taskfile.yml.html Taskfile.yml
pygmentize -O full,style=emacs,linenos=1,lineanchors=1 -f html -l python -o content/opml_to_html.html bin/opml_to_html.py
pygmentize -O full,style=emacs,linenos=1 -l python -o content/papers/papersindex.html bin/papersindex.py
pygmentize -O full,style=emacs,linenos=1 -l python -o content/papers/papersindex.html bin/papersindex.py
opml:
bin/opml_to_html.py
papers: nbrefs
python bin/papersindex.py
nbrefs:
bibtex2html -o content/bib/nbrefs -css https://www.btbytes.com/css/semantic.css \
--title References \
--header "<nav><p><a href="/">Home (www.btbytes.com)</a>, <a href="nbrefs_bib.html">View .bib file</a>, <a href="nbrefs.bib">Download .bib file</a>.</p></nav>" \
--footer "<footer><p>Generated on <code>$(shell date)</code></p></footer>" \
content/bib/nbrefs.bib
soupault:
soupault
clean:
rm -rf output