6 ms·
I saw this further down in the thread: https://github.com/casey/just https://github.com/casey/just Looks like a version of make optimized for running commands
by colonCapitalDee 3y ago
I saw this further down in the thread: https://github.com/casey/just https://github.com/casey/just
Looks like a version of make optimized for running commands instead of builds.
- nerdponx 3y agoCan you pass extra args to a Just command? Lacking a good way to do this was the #1 reason I moved off of Make: make test-foo TESTOPTS='-a -b -c' Yuck. My team now just adds a "run" script to all of our projects and it works well enough, no extra dependencies and no fussing around with the unfamiliarity of Make macros. Simple example of how this looks: #!/usr/bin/env bash set -eu venv=.venv test-coverage() { "${venv}"/bin/pytest --cov=src } coverage-report() { "${venv}"/bin/coverage combine || true "${venv}"/bin/coverage report } _run() { source "${venv}"/bin/activate "$@" } _run "$@"