Running commands for frontend
/nix/store/fv9livr2vv8nr9mgr6g2lfyblh6pkwzj-just-1.16.0/bin/just -f "frontend/mod.justfile" "$@"
error: Justfile does not contain recipe `frontend`.
error: Recipe `_run` failed on line 6 with exit code 1
I can see from execsnoop that /nix/store/fv9livr2vv8nr9mgr6g2lfyblh6pkwzj-just-1.16.0/bin/just -f frontend/mod.justfile frontend echo is what actually executed. This seems to be because "$@" is frontend echo instead of the desired echo.
I still very much prefer things like
test *args='':
bash -c 'while (( "$#" )); do echo - $1; shift; done' -- "{{args}}"
as in https://github.com/casey/just/issues/1054 . I think we need to be careful to distinguish am empty set of positional arguments and a empty string argument. It is my understanding that we don't have a empty set literal. If there is one, we can quite easily add things like expanding an array to arguments and passing them to a command.
I am trying to pass arguments from the main justfile to two separated justfiles (since module are not stable yet).
When I ran
just frontend echo
, I got the outputI can see from
execsnoop
that/nix/store/fv9livr2vv8nr9mgr6g2lfyblh6pkwzj-just-1.16.0/bin/just -f frontend/mod.justfile frontend echo
is what actually executed. This seems to be because "$@" isfrontend echo
instead of the desiredecho
.I still very much prefer things like
as in https://github.com/casey/just/issues/1054 . I think we need to be careful to distinguish am empty set of positional arguments and a empty string argument. It is my understanding that we don't have a empty set literal. If there is one, we can quite easily add things like expanding an array to arguments and passing them to a command.