by BeetleB · 4mo ago · 0 comments
It's really easy to learn - about an afternoon to peruse the docs. And quite capable.
Of course, if those aren't dynamics you have to deal with, definitely go with what works.
There's also invoke (https://www.pyinvoke.org/). I suspect it too is more powerful than just, and I know teams that use them.
just supports the same. If you begin a recipe with a shebang (#!/bin/bash), then it dumps the whole recipe to a file and executes it as a shell script.
Not limited to bash - you can do the same with Python, etc.
As for scripts in their own files vs embedded in a justfile: I've noticed people's opinions vary. Even in my team we'd debate the issue. I prefer them in the justfile so I can read them in one place - as long as it's not huge. Some team members preferred them in their own files.