Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -25,9 +25,9 @@ def arguments_or_exit(tool: str, argv: list[str], help_text: str, usage: str, re
|
||||
return arguments
|
||||
|
||||
|
||||
def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
|
||||
def projects_on(model: str, home: pathlib.Path, env: typing.Mapping[str, str]) -> list[str] | Failure:
|
||||
"""The keys of the projects build-release's models file, under home, runs on model, sorted."""
|
||||
models = read_models_file(paths_from(home).models_file)
|
||||
models = read_models_file(paths_from(home, env).models_file)
|
||||
if isinstance(models, Failure):
|
||||
return models
|
||||
return sorted(key for key, on in models.items() if on == model)
|
||||
|
||||
Reference in New Issue
Block a user