Skip to content

Improve --list output with modules #2107

@casey

Description

@casey

Collecting feedback from #929.

To sum up:

  1. --list output with modules is too verbose and nested
  2. 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.

@gl-yziquel and @valscion what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions