Comment by ctenb
"Just" is exactly made for this, and it is amazing. You write a justfile that is somewhat similar to a makefile but without the painpoints and it provides a CLI interface of commands you want to run
"Just" is exactly made for this, and it is amazing. You write a justfile that is somewhat similar to a makefile but without the painpoints and it provides a CLI interface of commands you want to run
I think the make in the title is a bit misleading, the author is actually just advocating for having a consistent file you use for adhoc scripting and testing in your application.
The thrust of the article could be summarized as: if you type more than one command into the shell, make a script.
You can reference other justfiles as modules too, so in a mono repo you can do `just foo-app test`.
If you combine that with relative working folders it’s very easy to manage large projects.
And you can get shell completion, which is extra nice.
I was a Just enjoyer for quite a while, until I tried mise. Mise does all the same things as just, but also has source/output tracking to avoid rerunning build jobs (like make), and also bundles runtimes like asdf. It's become my all-in-one task runner of choice.