-
Is there a method for executing recipes from an imported justfile? For example, shared.just # Outputs message to stderr in standardized format.
stderr message level:
>&2 echo "{{ level }}: {{ message }}" test.just import "shared.just"
# Echo a test message.
output:
just stderr "test" "ERROR" This is the result I receive when attempting to execute something similar.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What you're doing should work. You can also invoke the recipe as a dependency: output: (stderr "test", "ERROR") |
Beta Was this translation helpful? Give feedback.
-
Ah...so it needs it's own path. shared.just # Outputs message to stderr in standardized format.
stderr message level:
@>&2 echo "{{ level }}: {{ message }}"
test.just import "shared.just"
# Echo a test message.
output:
@just -f "{{ justfile() }}" stderr "test" "ERROR"
|
Beta Was this translation helpful? Give feedback.
Ah...so it needs it's own path.
shared.just
test.just