You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--list output with modules is too verbose and nested
It should be possible to do --list SUBMODULE and only see --list output for that submodule, and iteratively descend into submodules with
For 1, I think I agree. The current output is very verbose and gets unwieldy quickly if there are a lot of submodules, and gets quite nested if the module hierarchy is deep. I think that, by default, --list should not print out the recipes in submodules, but only the submodules themselves.
So something like:
$ just --list
Available recipes:
foo
bar
Available submodules:
baz
bob
If there are no recipes at the top level, it would just be:
$ just --list
Available submodules:
baz
bob
I'm undecided about whether to completely remove the nested output, or require --verbose or --nested or whatever to get it.
For 2, I'm working on a patch that allows --list to take a module path, which are space- or ::- separated module names, and will descend into that module, and only print the --list output for that module.
Collecting feedback from #929.
To sum up:
--listoutput with modules is too verbose and nested--list SUBMODULEand only see--listoutput for that submodule, and iteratively descend into submodules withFor 1, I think I agree. The current output is very verbose and gets unwieldy quickly if there are a lot of submodules, and gets quite nested if the module hierarchy is deep. I think that, by default,
--listshould not print out the recipes in submodules, but only the submodules themselves.So something like:
If there are no recipes at the top level, it would just be:
I'm undecided about whether to completely remove the nested output, or require
--verboseor--nestedor whatever to get it.For 2, I'm working on a patch that allows
--listto take a module path, which are space- or::- separated module names, and will descend into that module, and only print the--listoutput for that module.@gl-yziquel and @valscion what do you think?