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

List just the recipes in a module #2606

Open
john-cd opened this issue Jan 29, 2025 · 1 comment
Open

List just the recipes in a module #2606

john-cd opened this issue Jan 29, 2025 · 1 comment

Comments

@john-cd
Copy link

john-cd commented Jan 29, 2025

The only way I found to display the recipes of a module and just that:

In recipes/mod.just:

_default:
@just --list recipes --unsorted --justfile {{justfile()}}

It is a bit clunky. Is there a better way? Can it refer to self?

At least that could be added to the documentation.

@casey
Copy link
Owner

casey commented Jan 29, 2025

That is a bit clunky. One possibility would be to provide a function that returns the path to the current module, like module_path() so you could do:

just --list {{ module_path() }}

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

No branches or pull requests

2 participants