We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
==> justfile <== import 'sub.just' main_var := 'variable' @_: just --list @main: echo main echo {{ main_var }} ==> sub.just <== @sub: echo sub echo {{ main_var }}
just --fmt --unstable will format only justfile
just --fmt --unstable
justfile
just --fmt --unstable -f sub.just raises an error
just --fmt --unstable -f sub.just
error: Variable `main_var` not defined ——▶ sub.just:4:10 │ 4 │ echo {{ main_var }} │ ^^^^^^^^
I see to ways to resolve this:
--fmt
The text was updated successfully, but these errors were encountered:
Now we can't even format files with common recipes that don't have variable declaration:
❯ just --fmt -f sub.just --set main_var "123" error: `--format` used with unexpected overrides: `main_var=123`
Sorry, something went wrong.
No branches or pull requests
just --fmt --unstable
will format onlyjustfile
just --fmt --unstable -f sub.just
raises an errorI see to ways to resolve this:
--fmt
should format imported files automatically--fmt
can omit undefined variables and just format syntax (doesn't seem right)The text was updated successfully, but these errors were encountered: