Skip to content

Configurable JUSTFILE_NAMES? #2908

@orlp

Description

@orlp

I'd like to enable the workflow where I have a .localjustfile in project directories to store commands for me personally, not intended to be committed to the repository. Simply using .justfile is not sufficient if the project itself uses just, as just will give an error if both .justfile and justfile exist, stating multiple candidates have been found (which makes sense).

Just has the -f, --justfile argument to specify the exact justfile to load, but this does not do the automatic "scan upwards searching for <filename>" behavior of just that nicely lets you run commands from anywhere in the project.

Would you be open to add an argument similar to --justfile, but which instead changes the name just searches for, rather than specifying an exact path?

Or alternatively (but less flexibly) an option --local-justfile which makes just look for localjustfile or .localjustfile.

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