repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

support otp in publish recipe

15416879815ffe89c93a1b4ad22ebeda7bec8daa

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

pi/justfile

Modified
4 4 _default:
5 5 python3 scripts/extensions.py list
7 7 check ext="":
8 8 python3 scripts/extensions.py check {{ ext }}
10 -publish ext="":
11 - python3 scripts/extensions.py publish {{ ext }}
10 +publish ext="" otp="" bump="patch":
11 + #!/usr/bin/env bash
12 + set -euo pipefail
13 + args=(publish)
14 + if [[ -n "{{ ext }}" ]]; then args+=("{{ ext }}"); fi
15 + if [[ -n "{{ otp }}" ]]; then args+=(--otp "{{ otp }}"); fi
16 + args+=(--bump "{{ bump }}")
17 + python3 scripts/extensions.py "${args[@]}"
13 19 demo name:
14 20 python3 scripts/demo.py {{ name }}