Skip to content
New issue

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

Call just --dump to read justfile contents instead of reading file as text #4

Merged
merged 3 commits into from
Jul 1, 2023

Conversation

xavdid
Copy link
Owner

@xavdid xavdid commented Jun 30, 2023

Instead of parsing the justfile as text, use just --dump --dump-format json to get the file (if valid) in a pre-defined structure. This take a lot of the guesswork out, assuming the file is well-formed and just is installed.

It falls back to the text parsing if just is invalid.

@xavdid xavdid merged commit d4c0410 into main Jul 1, 2023
@xavdid xavdid deleted the justfile-improvements branch July 1, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant