just icon indicating copy to clipboard operation
just copied to clipboard

List available recipes as a graph or tree

Open tducret opened this issue 1 year ago • 4 comments

Hi there! Is there a way to quickly check the recipe dependencies? I checked the Listing Available Recipes page but it's not mentioned.

If not existing, I think it could be worth to implement. Let's take an example. Based on this Justfile found in the documentation :

# Justfile
a:
  echo 'A!'

b: a
  echo 'B start!'
  just c
  echo 'B end!'

c:
  echo 'C!'

We could execute the following command :

just --list --graph

And we could clearly see the recipe dependencies :

├── a
├── b
│   ├── a
│   └── c
└── c

What do you think?

tducret avatar Jan 18 '24 09:01 tducret