On STM we have to work in a large number of repos, branches and Evergreen projects, so it'd be great if the evergreen CLI client let me set default projects on a per-directory basis.
Here's an example of what I'd like to do in my ~/.evergreen.yml config:
The existing project "default: true" will behave with the lowest precedence, the new proposed structure is a higher precedence, and the -p flag is the highest precedence, always overriding what's specified in the config file.
When evergreen patch or evergreen commit-queue merge (and other commands where this makes sense) are called, they'll check if the CWD is one of the directories listed under the directory key above, or a child of one of those directories, and override the default project with the one specified in the directories map if it exists.
Please check and resolve symbolic links with os.Lstat and os.ReadLink on the CWD and the directories listed in the config. (there is no need to assert that any of these directories exist. Doing so would not be useful) The above structure also allows this override mechanism to be expanded in the future to accommodate additional flags.