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

Support recipe aliases #389

Closed
casey opened this issue Apr 2, 2019 · 2 comments
Closed

Support recipe aliases #389

casey opened this issue Apr 2, 2019 · 2 comments

Comments

@casey
Copy link
Owner

casey commented Apr 2, 2019

This was requested by @ryloric in Gitter. For example:

alias b = build

build BAR:
 echo 'Building {{BAR}}!'

Given the above justfile, the build recipe could be called with build or b. Although making a recipe with no body and a single dependency (i.e. b: build) currently works, it doesn't work if the recipe has dependencies.

Allow dependencies that take parameters, a la #289, would also be a solution, but I think that a dedicated alias feature would be better.

@ryloric
Copy link
Contributor

ryloric commented Apr 6, 2019

#390
The only difference from what you described is that alias b ought to be declared after build, else just will throw a compilation error.

@casey
Copy link
Owner Author

casey commented Apr 11, 2019

Fixed in #390 😎

@casey casey closed this as completed Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants