If I have a justfile like:
some-recipe argument:
# Here is a comment
@echo "hello"
# Another comment
@echo {{argument}}
When I run it I get the output:
just some-recipe "some text"
# Here is a comment
hello
# Another comment
some text
I can make the printing of those comments go away by adding a @ in front of them, but it would be nice if just interpreted comments within a just recipe as comments and completely ignored them.
I think what might be happening here is that the comment lines are each getting echoed by just and then passed to a shell invocation, where they do absolutely nothing because sh and just have the same syntax for comments.
If I have a justfile like:
When I run it I get the output:
I can make the printing of those comments go away by adding a
@in front of them, but it would be nice if just interpreted comments within a just recipe as comments and completely ignored them.I think what might be happening here is that the comment lines are each getting echoed by just and then passed to a shell invocation, where they do absolutely nothing because sh and just have the same syntax for comments.