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

Improve justfile syntax #3018

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Andriamanitra
Copy link
Contributor

The current justfile syntax is mostly copied from Makefile syntax. Some of those rules don't even exist in just, and it was also missing a bunch of just-specific syntax. The detect filename attribute was also broken when you opened a justfile from a different directory because of the ^.

I may have made the syntax file a bit more advanced than it needs to be (some of the rules rely on the order they are declared in) but I think it's still a solid improvement.

Here's a comparison between old (left) and new (right):

side-by-side comparison

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

2 participants