3 ms·
The one thing that converted us from Taskfile to Justfile is how it handle parameters injected at instantiation. https://just.systems/man/en/recipe-parameters.
by jensenbox 2y ago
The one thing that converted us from Taskfile to Justfile is how it handle parameters injected at instantiation.
https://just.systems/man/en/recipe-parameters.html https://just.systems/man/en/recipe-parameters.html just works better for us than https://taskfile.dev/usage/#forwarding-cli-arguments-to-commands https://taskfile.dev/usage/#forwarding-cli-arguments-to-comm...
We use Docker Compose for our dev environment and were trying to do something like (notice the extra dash dash for separating the arguments out):
task poetry -- add requests django
It was not working as we expected for some of the users due to the argument dash dash stuff - they were forgetting due to muscle memory but the following does:
just poetry add requests django
under the hood it was just calling (the equivalent):
docker compose run --rm --build poetry poetry "$@"
Just arguments are more ergonomic.
This is how just does it:
poetry +command:
docker compose run --rm --build poetry poetry {{command}}
- lormayna 2y agoI agree with you: I automate many K8S command with task but everytime I forget about the - - Having a better input system will be a great improvement from usability perspective