| freeqsay: Nim port of the Clojure implementation fa53aa2 nandi 12h ago | 1 | # freeqsay recipes. Everything here assumes nim on PATH. |
| 2 | |
| 3 | # Show the recipes. |
| 4 | default: |
| 5 | @just --list |
| 6 | |
| 7 | # Compile the standalone binary (optimized). |
| 8 | build: |
| 9 | nim c -d:release -d:ssl --hints:off -o:freeqsay src/freeqsay.nim |
| 10 | |
| 11 | # Run the test suite. |
| 12 | test: |
| 13 | nim c -d:ssl --hints:off -r tests/test_avatar.nim |
| 14 | |
| 15 | # Run from source, without an optimized build: `just run jay.bsky.team hello`. |
| 16 | run *args: |
| 17 | nim r -d:ssl --hints:off src/freeqsay.nim {{args}} |
| 18 | |
| 19 | # Screenshot the output, gapless (termshot-tight sets lineSpacing 1.0): |
| 20 | # `just shot jay.bsky.team hello`. Writes freeqsay.png. |
| 21 | shot *args: |
| 22 | termshot -c -C 80 -f freeqsay.png -- nim r -d:ssl --hints:off src/freeqsay.nim {{args}} |
| 23 | |
| 24 | # Remove build output and caches. |
| 25 | clean: |
| 26 | rm -rf freeqsay tests/test_avatar nimcache tests/nimcache |